firebolt-sdk-0.9.2
توضیحات
Python SDK for Firebolt
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | firebolt-sdk-0.9.2 |
| نام | firebolt-sdk |
| نسخه کتابخانه | 0.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Firebolt |
| ایمیل نویسنده | support@firebolt.io |
| آدرس صفحه اصلی | https://github.com/firebolt-db/firebolt-sdk |
| آدرس اینترنتی | https://pypi.org/project/firebolt-sdk/ |
| مجوز | Apache-2.0 |
# firebolt-sdk
[](https://github.com/firebolt-db/firebolt-python-sdk/actions/workflows/nightly.yml)
[](https://github.com/firebolt-db/firebolt-python-sdk/actions/workflows/unit-tests.yml)
[](https://github.com/firebolt-db/firebolt-python-sdk/actions/workflows/code-check.yml)
[](https://github.com/firebolt-db/firebolt-python-sdk/actions/workflows/security-scan.yml)
[](https://github.com/firebolt-db/firebolt-python-sdk/actions/workflows/integration-tests.yml)

### Installation
* Requires Python `>=3.7`
* `pip install firebolt-sdk`
## Documentation
For reference and tutorials, see the [Firebolt Python SDK reference](https://python-sdk.docs.firebolt.io/).
## Connection parameters
These parameters are used to connect to a Firebolt database:
- **engine_url** - url for an engine to make requests to. Can be retrieved from Web UI, or from [engine](https://github.com/firebolt-db/firebolt-sdk/tree/main/src/firebolt/model/engine.py) attribute `endpoint`
- **database** - name of the database to make queries to
- **username** - account username
- **password** - account password
Optional parameters
- **api_endpoint** - api hostname for logging in. Defaults to `api.app.firebolt.io`.
## Examples
See [PEP-249](https://www.python.org/dev/peps/pep-0249) for the DB API reference and specifications. An example [jupyter notebook](https://github.com/firebolt-db/firebolt-sdk/tree/main/examples/dbapi.ipynb) is included to illustrate the use of the Firebolt API.
## Special considerations
### Cursor objects should not be shared between threads
Cursor is not thread-safe and should not be shared across threads. In a multi-threaded environment you can share a Connection, but each thread would need to keep its own Cursor. This corresponds to a thread safety 2 in the [DBApi specification](https://peps.python.org/pep-0249/#threadsafety).
## Optional features
### Faster datetime with ciso8601
By default, firebolt-sdk uses `datetime` module to parse date and datetime values, which might be slow for a large amount of operations. In order to speed up datetime operations, it's possible to use [ciso8601](https://pypi.org/project/ciso8601/) package. In order to install firebolt-sdk with `ciso8601` support, run `pip install "firebolt-sdk[ciso8601]"`
## Contributing
See: [CONTRIBUTING.MD](https://github.com/firebolt-db/firebolt-sdk/tree/main/CONTRIBUTING.MD)
## License
The Firebolt DB API is licensed under the [Apache License Version 2.0](https://github.com/firebolt-db/firebolt-sdk/tree/main/LICENSE) software license.
نیازمندی
| مقدار | نام |
|---|---|
| ==1.1.0 | aiorwlock |
| >=1.4.4 | appdirs |
| >=0.1.0 | appdirs-stubs |
| >=3.4.0 | cryptography |
| ==0.23.0 | httpx[http2] |
| >=1.8.2 | pydantic[dotenv] |
| >=2.8.2 | python-dateutil |
| ==1.0.9 | readerwriterlock |
| >=0.4.2 | sqlparse |
| <0.22.0 | trio |
| ==2.2.0 | ciso8601 |
| ==0.7.0 | devtools |
| ==0.910 | mypy |
| ==2.15.0 | pre-commit |
| >=4.5.3 | pyfakefs |
| ==6.2.5 | pytest |
| ==0.19.0 | pytest-asyncio |
| ==3.0.0 | pytest-cov |
| ==0.21.0 | pytest-httpx |
| ==3.6.1 | pytest-mock |
| ==2.1.0 | pytest-timeout |
| ==2.5.0 | pytest-xdist |
| ==0.6.* | trio-typing[mypy] |
| ==3.3.18 | types-cryptography |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl firebolt-sdk-0.9.2:
pip install firebolt-sdk-0.9.2.whl
نصب پکیج tar.gz firebolt-sdk-0.9.2:
pip install firebolt-sdk-0.9.2.tar.gz