circle-sdk-0.1.0b7
توضیحات
Python SDK for Circle APIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | circle-sdk-0.1.0b7 |
| نام | circle-sdk |
| نسخه کتابخانه | 0.1.0b7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Circle SDK Developers |
| ایمیل نویسنده | sdk-developers+pypi@circle.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/circle-sdk/ |
| مجوز | - |
# Circle APIs Python Library
[](https://pypi.org/project/circle-sdk)
[](https://pypi.org/project/circle-sdk)
The Circle Python library provides convenient access to the Circle API for
applications written in Python. For the API reference, see the [Circle API docs](https://developers.circle.com/reference). Also see this project's [PyPI package page](https://pypi.org/project/circle-sdk/).
## Requirements
Python 3.7+ and Node 10+ (optional for contributing and development).
## Installation
The recommended way of installation is using the Python Package Index (PyPI):
```sh
python3 -m pip install circle-sdk
```
The other option requires you to clone this repo and run
```sh
python3 -m pip install -e /Path/to/this/repo/root
```
## Python Typing
We strongly recommended that you use this SDK with Python typing extensions: we recommend using the VS Code IDE, downloading the [Python IntelliSense extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python), and enabling type checking for your workspace (see [this guide](https://www.emmanuelgautier.com/blog/enable-vscode-python-type-checking)).
## Usage
```python
import circle
from circle.apis.tags import subscriptions_api
from circle.model.subscription_request import SubscriptionRequest
from pprint import pprint
# Configure global settings
circle.base_url = circle.Environment.SANDBOX_BASE_URL
circle.api_key = '<replace-me-with-your-api-key>'
# Choose API driver
api_instance = subscriptions_api.SubscriptionsApi()
# Prepare request data
body = SubscriptionRequest(
endpoint="https://example.org/py/notifications"
)
# Send request
try:
api_response = api_instance.create_subscription(body=body)
pprint(api_response)
except circle.ApiException as e:
print("Exception when calling SubscriptionsApi->create_subscription: %s\n" % e)
```
## Development
Clone this repo and install development dependencies using
```sh
# For codegen tools and git hook checks
yarn install
# For the Python SDK's dependencies
python3 -m pip install -r requirements.txt
```
1. Run the codegen command to generate the source code for thi
s SDK from the `.openapi-generator/sdk.json` OpenAPI specificat
ion file:
```sh
yarn gen-sdk
```
## Contributions
Please follow the [Conventional Commits][convencomms] format for all commits when creating a contributing pull request for this repo.
[convencomms]: https://www.conventionalcommits.org/en/v1.0.0/
نیازمندی
| مقدار | نام |
|---|---|
| >=14.5.14 | certifi |
| ~=2.3.4 | frozendict |
| ~=2.7.0 | python-dateutil |
| >=21.0.0 | setuptools |
| ~=4.3.0 | typing-extensions |
| ~=1.26.7 | urllib3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl circle-sdk-0.1.0b7:
pip install circle-sdk-0.1.0b7.whl
نصب پکیج tar.gz circle-sdk-0.1.0b7:
pip install circle-sdk-0.1.0b7.tar.gz