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
Metadata
Release files for picsellia-connexion-services 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| picsellia_connexion_services-0.3.0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| picsellia_connexion_services-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / picsellia_connexion_services-0.3.0.tar.gz
| Download URL | picsellia_connexion_services-0.3.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0b50317da1ea8485256601c2daabd69b7341e6f883a33488dff4b82eccf85b3
|
|
BLAKE2b-256 checksum How to use checksums |
a252f737eed78ae464d9efc01ffd91e8cd19bfb8f40e5bf85dcce982e5359f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.7 Linux/6.8.0-87-generic
|
Release files / picsellia_connexion_services-0.3.0-py3-none-any.whl
| Download URL | picsellia_connexion_services-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fb9530d497e8e824aebada4bc5ef22f23f27ae35a0122fae8d425f089b4391e
|
|
BLAKE2b-256 checksum How to use checksums |
6377d1006bd89a35a965747b9a2d4f73e0dc3491149bbf22356342ea21cc0789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.7 Linux/6.8.0-87-generic
|