Skip to main content

Unofficial SDK for interacting with Bokio.

Project description

PyBokio

License Latest PyPI version PyPI status

Unofficial SDK for interacting with Bokio

Currently the project is in very early development and very little functionality can be used. But if you are eager to get stuff going, please consider helping out by contributing!

Usage

Connecting

Connecting with credentials

The simplest way to connect with the client is through credentials.

from pybokio import BokioClient

client = BokioClient(
    company_id="00000000-0000-4000-0000-000000000000",
    username="your@email.here",
    password="your.password"
)
client.connect()

Connecting with cookies

A preferred way to connect is to reuse the cookies after logging in with credentials.

Saving cookies from an existing session

import pickle

...

cookies = client.get_cookies()
with open('session.pickle', 'wb') as f:
    pickle.dump(cookies, f)

Reusing cookies to connect again

from pybokio import BokioClient
import pickle

with open('session.pickle') as f:
    cookies = pickle.load(f)

client = BokioClient.from_cookies(
    company_id="00000000-0000-4000-0000-000000000000",
    cookies=cookies
)
client.connect()

Contributing

Contributions are always welcome!

To contribute, please take the following steps:

  1. Fork the repo
  2. Add your change
  3. Make a pull request with a short description of the change you're proposing.

Authors

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

pybokio-0.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybokio-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pybokio-0.1.1.tar.gz.

File metadata

  • Download URL: pybokio-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for pybokio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a7fd7533ecd037d821a7239376c302374d32eb66810fb00cbd81358d3a339eb7
MD5 16294524e86a238008c49b8c8ebe4bc3
BLAKE2b-256 837edd3fa3a263037b42bfa810bef99f5af334a4a3bc71ba989969f26ee55c2c

See more details on using hashes here.

File details

Details for the file pybokio-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pybokio-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for pybokio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a3318c5b6c78a9f7a43a5de42f218325bf17fbcb4be54a35030ee92bf1b5e7
MD5 e22055b3f229ea27c000ab2582ad272a
BLAKE2b-256 70779d8b919add313c2de07474877c0f7d806c8112dfa1f3e27ac4c3d990eef6

See more details on using hashes here.

Supported by

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