Skip to main content

SDK for use with Cloaken url unshortener AMI

Project description

# Cloaken SDK

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

# Examples:

```python
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cloakensdk-0.0.3-py2-none-any.whl (5.9 kB) Copy SHA256 hash SHA256 Wheel py2
cloakensdk-0.0.3-py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel py3
cloakensdk-0.0.3.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page