Package for connection to Picsellia platforms with some wrapper around requests library
Project description
Picsellia Services
Picsellia Services is a Python library that wraps connexions with Picsellia micro services.
Installation
Use the package manager pip to install picsellia-connexion-services.
pip install picsellia-connexion-services
Usage
JwtToken
from picsellia_connexion_services.jwt_service import JwtServiceConnexion
service = JwtServiceConnexion({'api_token': '<api_token>', 'deployment_id': '<deployment_id>'}, 'localhost:8000')
service.get(f'/deployment/{deployment_id}/stats')
Usage in mocked tests
from picsellia_connexion_services.mocked_service import MockedServiceConnexion
service = MockedServiceConnexion('test')
service.set_next_mocked_response("get", "/ping", JsonResponse({"ok" : True}, status=status.HTTP_200_OK))
service.get("/ping")
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picsellia_connexion_services-0.3.0.tar.gz.
File metadata
- Download URL: picsellia_connexion_services-0.3.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.7 Linux/6.8.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b50317da1ea8485256601c2daabd69b7341e6f883a33488dff4b82eccf85b3
|
|
| MD5 |
9d093f2b959880ce2e545e4d2d95f66d
|
|
| BLAKE2b-256 |
a252f737eed78ae464d9efc01ffd91e8cd19bfb8f40e5bf85dcce982e5359f87
|
File details
Details for the file picsellia_connexion_services-0.3.0-py3-none-any.whl.
File metadata
- Download URL: picsellia_connexion_services-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.7 Linux/6.8.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb9530d497e8e824aebada4bc5ef22f23f27ae35a0122fae8d425f089b4391e
|
|
| MD5 |
f16814a777cf4fc5b67820e1f2450e75
|
|
| BLAKE2b-256 |
6377d1006bd89a35a965747b9a2d4f73e0dc3491149bbf22356342ea21cc0789
|