sandcage-api-python is a python library for interfacing with SandCage’s API. The API documentation can be found at SandCage’s API documentation
Requirements
certifi
requests
In order to use the library you need a SandCage API Key. Once logged into SandCage, you can get your API Key from here.
Install
Using pip:
pip install sandcage
or alternatively clone and install:
git clone https://github.com/sandcage/sandcage-api-python cd sandcage-api-python python setup.py install
Usage
Simply:
from sandcage import SandCage
sc = SandCage('[YOUR_SANDCAGE_API_KEY]')
sc.list_files_service()
See more examples
To not include YOUR_SANDCAGE_API_KEY into your code you can for example save it as a file named SANDCAGE_API_KEY into your home directory:
cd ~ echo YOUR_SANDCAGE_API_KEY > SANDCAGE_API_KEY
and then use the following code to initialize SandCage:
import os.path
from sandcage import SandCage
api_key_dir = os.path.expanduser('~')
api_key_file = os.path.join(api_key_dir, 'SANDCAGE_API_KEY')
with open(api_key_file, 'r') as f:
api_key = f.readline()
sc = SandCage(api_key=api_key)
Contributing
We are open to suggestions and code revisions, however there are some rules and limitations that you might want to consider first.
Code that you contribute will automatically be licensed under the Apache License Version 2.0.
Third party code will be reviewed, tested and possibly modified before being released.
These basic rules help ensure that this code remains Open Source and compatible with Apache 2.0 license. All contributions will be added to the changelog and appear in every release.
Metadata
Release files for sandcage 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| sandcage-0.2.0.tar.gz | 4.0 kB | Without provenance | Details for sandcage-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sandcage-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sandcage-0.2.0-py2.py3-none-any.whl |
Total release size: 9.3 kB
Release files / sandcage-0.2.0.tar.gz
| Download URL | sandcage-0.2.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeae799ec0f880612636a4bca22dffb63283f4ccfd04ad2a444cb50ca1c161a1
|
|
BLAKE2b-256 checksum How to use checksums |
19e8f030a749ca2b2bd5213766f6f2d92f643ae0956506d812b03bbcbf99866a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / sandcage-0.2.0-py2.py3-none-any.whl
| Download URL | sandcage-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4b32042b42f0be25aeda1e23518d556fba80cd0f3158e19896502e0f2537f549
|
|
BLAKE2b-256 checksum How to use checksums |
07eb29b1fa8e9673a13e19e8f41eaea07814dcf59a0a1f51c82689fa919accd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sandcage 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.