Skip to main content

Cloaken SDK

Python SDK for cloaken
resources.py contains the enpoints to use to interact with Cloaken

Examples:

from cloakensdk.client import SyncClient
from cloakensdk.resources import Url
import os  

server = os.environ["SERVER_URL"]
username = os.environ["USERNAME"]
password = os.environ["PASSWORD"]
client = SyncClient(server_url=server,
                    username=username,
                    password=password)

resource = Url(client)

#unshorten a url
#todo(aj)

#create a url entry manually in the database
resource.create(url="http://test.com",unshortened_url="http://long.com")
data = resource.full_request()

See ./tests/unittests.py

Unit test instructions:

  1. set environment variables:
    a. SERVER_URL = http://servername:port/
    b. USERNAME
    c. PASSWORD
  2. python tests/unittests.py

Packaging

  1. update version in setup.py
  2. python setup.py sdist bdist_wheel
  3. twine upload dist/*

Metadata

Release files for cloakensdk 0.0.8

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

Source distribution (sdist)

Source distribution for cloakensdk 0.0.8
File Size Uploaded Provenance Actions
cloakensdk-0.0.8.tar.gz 5.0 kB Without provenance Details for cloakensdk-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cloakensdk 0.0.8
File Interpreter ABI Platform Actions
cloakensdk-0.0.8-py3-none-any.whl Python 3 none any Details for cloakensdk-0.0.8-py3-none-any.whl

Total release size: 11.9 kB

Release files / cloakensdk-0.0.8.tar.gz

Download URL cloakensdk-0.0.8.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3cff1cc843f663591e2d7c7bcc440def3652ad82e2154c6529d4b417e54a834
BLAKE2b-256 checksum
How to use checksums
93403f72aad54cb8b019850598181d6439334c33f9e16377b714b17afb98cc6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

Release files / cloakensdk-0.0.8-py3-none-any.whl

Download URL cloakensdk-0.0.8-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5152937cd5a29aa6c25622feda81748aa253471bf9f897cfc3b675b437d38fa3
BLAKE2b-256 checksum
How to use checksums
44502eb853ddd2ddaf8ac5b728706a871bf1748b5f2ec62f870fad00664f1403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

Security for cloakensdk 0.0.8

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.

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