Skip to main content
## beluga_py

Command line interface and python module for the BelugaCDN API. Python2 and Python3 compatible.


### Installation

```
pip install beluga_py
```

### API Usage

```
from beluga_py.api import BelugaAPI

api = BelugaAPI(token_id=<BELUGACDN_TOKEN_ID>, token_secret=<BELUGACDN_TOKEN_SECRET>)
# or
api = BelugaAPI(username=<BELUGACDN_USERNAME>, password=<BELUGACDN_PASSWORD>)

# get a list of all site configurations
r = api.get('api/cdn/v2/sites')

# create an authentication token
r = api.post('api/token/token', json={'description': 'test from api'})

data = r.json()
```

### Command Line

```
# get a list of all site configurations
beluga --username <your username> --password <your password> --service api/cdn/v2 --path sites

# create an authentication token
beluga --username <your username> --password <your password> --method POST --service api/token --path token --body '{"description": "my new token"}'
```

Refer BelugaCDN's API documentation at https://docs.belugacdn.com/ for more information.

#### Notes

* based on [`python-beluga`](https://github.com/belugacdn/python-beluga) by Adam Jacob Muller ([@AdamJacobMuller](https://github.com/AdamJacobMuller))


Metadata

Release files for beluga-py 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beluga-py 1.0.0
File Size Uploaded Provenance
beluga_py-1.0.0.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for beluga-py 1.0.0
File Interpreter ABI Platform
beluga_py-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.4 kB

Release files / beluga_py-1.0.0.tar.gz

Download URL beluga_py-1.0.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce9f63c018f0e7085cf17022c04509aeaba95f2cfd7d3273640b881aafbe7431
BLAKE2b-256 checksum
How to use checksums
52151275d927cf4acbd7eaea31734f5f499c44fc791a09a6ab341317fa806ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / beluga_py-1.0.0-py2.py3-none-any.whl

Download URL beluga_py-1.0.0-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0bd83ee837ffb7d5dedfadddb32df9a529ced0ecf3f94950a5af024f094389aa
BLAKE2b-256 checksum
How to use checksums
bfac6650a7b385f6021fb847932b2dfa5107a129b20d88b7750bbaa40350b5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for beluga-py 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page