Skip to main content

Project description

Athena is the core SDK for requesting the EnOS API

Example

1.1 Query

from poseidon.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

req = poseidon.urlopen(appkey, appsecret, url)
print(req)

1.2 Header

from poseidon.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

header = {}

req = poseidon.urlopen(appkey, appsecret, url, None, header)
print(req)

1.3 Body

from poseidon.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

data = {"username": "11111", "password": "11111"}

req = poseidon.urlopen(appkey, appsecret, url, data)
print(req)

Release files for enos-poseidon 0.2.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 enos-poseidon 0.2.0
File Size Uploaded
enos-poseidon-0.2.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enos-poseidon 0.2.0
File Interpreter ABI Platform
enos_poseidon-0.2.0-py2.7.egg Legacy Egg format - - Details

Total release size: 9.3 kB

Release files / enos-poseidon-0.2.0.tar.gz

Download URL enos-poseidon-0.2.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d94e4ac78dc304cef16a59607ac80a5d15f909abbf9b6e09d4e9d8a7b040dc3a
BLAKE2b-256 checksum
How to use checksums
5b6ea2cfeaec0da5a2e780d992a628e4331fe2c8d452443d632dd17eefbc70d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

Release files / enos_poseidon-0.2.0-py2.7.egg

Download URL enos_poseidon-0.2.0-py2.7.egg
Size 6.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
140a75c844d3d7cef4d6e4c0db943f394336f58e10e6e74588fc31d7cf957277
BLAKE2b-256 checksum
How to use checksums
aefd8cbba2a00c5c2f871660732bf54344071de360c926d5c95e8903c6eac225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

1 release file

0.1.8

1 release file

0.1.6

1 release file

0.1.5

1 release file

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