Skip to main content

Chaster python sdk

Project description

Chaster Python SDK

pip install --upgrade chaster-sdk

import os
import logging
from chaster import api

logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)

chaster_api = api.ChasterAPI(os.environ.get('CHASTER_BEARER_TOKEN'), user_agent='your_user_agent/1.0')
response, your_locks = chaster_api.get_shared_locks()

Releases

Release Conditionals State
v0.1.0.dev1 Stubbed, Validated, Integrated done
v0.1.0.a1 Language, Documented
v0.1.0.a2 Mocked, Tutorial
v0.1.0 3 demos of a few hundred lines each

Layer 1 - API call wrappers and mocks

API Group Stubbed Validated Integrated Language Documented Mocked Tutorial
Shared Locks done done done done done
Locks done done done done done
trigger_extension_actions done done done done done
Lock Creation done done done done done
Profile done done done done done
Files done done blocked done done
Combinations done done done done done
Extensions done done done done done
Session Offer done done done done done
Messaging done done done done done
Extensions - Temporary Opening done done done done done
Community Events done done done done done
Partner Extensions
Settings done done done done done
Users done done done done done
Keyholder done done done done done
Reports N/A N/A N/A N/A N/A
Partner Configurations
Public Locks done done done done done
Extensions - Verification Picture done done done done done

Stubbed - API call functions, DTOs defined
Validated - tested with mocked chaster http response
Integrated - Integration tests written
Language - Naming and interface refined and settled
Documented - Functions are documented
Mocked - API call has a mock equivalent allowing for local development of bots and functions are documented
Tutorial - A tutorial demonstrating usage of the function written and the SDK pypi docs published

Layer 2 - OOP based calls and mocks

OOP Actions - To obfuscate the API calls into function calls on the object itself. For example, rather than having to call the trigger API to spin the wheel of fortune, instead the interface would be lock.spin_wheel_of_fortune().
Tested - Test each function by mocking the chaster sdk object Mocked - Similar spirit to mocking of layer 1 but instead simplify the interface to the data

Backlog

  • Extension Objects - DTO Tested and Validated
  • Extension Information API - C&C the extension information component vs. the extension info in the lock obj
  • Probably remove bespoke objects as input to api functions, such as in triggers
  • Redact bearer token from logs
  • Remove delay and apply intelligent rate limiting reaction

Research

Ops

Releasing

Housekeeping File Flushed Out Documented
./src/init.py
./src/setup.py
./tests/init.py
./.coveragerc
./.gitignore
./.travis.yml
./init.py
./LICENSE
./Makefile
./pyproject.toml
./README_BOILERPLACE.md
./requirements.txt
.pypirc

Understood - Validated it has a place in the deployment process and is functioning correctly.
Documented - The file is document in a process doc

Contributing

You want to? Nice! Hmu on Discord, username PupHimbo

Credits

Repository started with by using a https://github.com/AlexanderWillner/python-boilerplate

Project details


Download files

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

Source Distribution

chaster-sdk-0.1.0a1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

chaster_sdk-0.1.0a1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file chaster-sdk-0.1.0a1.tar.gz.

File metadata

  • Download URL: chaster-sdk-0.1.0a1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for chaster-sdk-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 a5dc6a852abd575398e75c943bfc18fd963cc4384a74770a0a72e992613c3b09
MD5 3b07b3cd940404960848bde72529c015
BLAKE2b-256 1967c5b99fc031280f1f639808dd0ec7bbaa7402024522a697d75e2629eaee0a

See more details on using hashes here.

File details

Details for the file chaster_sdk-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for chaster_sdk-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 25e51abd09b8075f8a33e103e27b07feeadd6ff0b7cf51a15d6bcfe11a5effe9
MD5 2313d8b63f8c2214078df84020f18edb
BLAKE2b-256 e9c396445cf65fd9f25e255502f20313e659aa40c6c9c531cdcd09c59c176475

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page