Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A client library for accessing the Rigetti QCS API.
from qcs_api_client.client import build_sync_client
from qcs_api_client.models import ListReservationsResponse
from qcs_api_client.operations.sync import list_reservations
with build_sync_client() as client:
response: ListReservationsResponse = list_reservations(client=client).parsed
from qcs_api_client.client import build_async_client
from qcs_api_client.models import ListReservationsResponse
from qcs_api_client.operations.asyncio import list_reservations
# Within an event loop:
async with build_async_client() as client:
response: ListReservationsResponse = await list_reservations(client=client).parsed
By default, initializing your client with build_sync_client
or build_async_client
will
use QCSClientConfiguation.load
to load default configuration values. This function accepts:
QCS_PROFILE_NAME
). The name of the profile referenced in your settings
file. If not provided, QCSClientConfiguation.load
will evaluate this to a default_profile_name
set in your settings file or "default".QCS_SETTINGS_FILE_PATH
). A path to the current user's settings file in TOML format. If not provided, QCSClientConfiguation.load
will evaluate this to ~/.qcs/settings.toml
.QCS_SECRETS_FILE_PATH
). A path to the current user's secrets file in TOML format. If not provided, QCSClientConfiguation.load
will evaluate this to ~/.qcs/secrets.toml
. The user should have write access to this file, as the client will attempt to update the file with refreshed access tokens as necessary.If you need to specify a custom profile name or path you can initialize your client accordingly:
from qcs_api_client.client import build_sync_client, QCSClientConfiguration
from qcs_api_client.models import ListReservationsResponse
from qcs_api_client.operations.sync import list_reservations
configuration = QCSClientConfiguration.load(
profile_name='custom',
secrets_file_path='./path/to/custom/secrets.toml',
settings_file_path='./path/to/custom/settings.toml',
)
with build_sync_client(configuration=configuration) as client:
response: ListReservationsResponse = list_reservations(client=client).parsed
The source code for this repository is synchronized from another source. No commits made directly to GitHub will be retained.
FAQs
A client library for accessing the Rigetti QCS API
We found that qcs-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.