Skip to main content

Asynchronous boosty wrapper with some utils

Project description

BoostyPy

Boosty Wrapper

PyPI - Version PyPI - Python Version Hatch project


Описание на русском

Table of Contents

Installation

pip install boosty

License

boosty is distributed under the terms of the MIT license.

[!IMPORTANT] !WARNING! this version of library is very unstable

If you use it, contact maintainer to help make it stable

Usage

Optional: specify IGNORE_MISSING_AND_EXTRA_FIELDS environment variable to disable strict schema validation

Optional: fill auth.json file with authentication data (or use browser auth to create them):

{
  "access_token": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
  "device_id": "ffffffff-ffff-ffff-ffff-ffffffffffff",
  "expires_at": 12345678900,
  "refresh_token": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}

Example:

import asyncio

from boosty.api import API

async def main():
    api = API()
    response = await api.get_post("boosty", post_id="c9fb8a19-c45e-4602-9942-087c3af28c1b")
    print(response.title)
    # 'Добро пожаловать на борт!'

asyncio.run(main())

More examples in examples/ folder

TODO for stable release

  • inject additional data to models from requests
  • convert timestamps to datetime
    • serialize it to int when dumping
  • schema
    • complete api schema (at 100 stars)
      • add access levels logic for requests
    • more useful properties for models
    • merge reply comment with comment model
    • msgspec?
    • rename folder types/ to schema/
  • logic
    • get rid of strange pydantic model init depends on env
    • maybe better solution for auth data storage
  • docs/ (at 50 stars)
  • examples/
    • render text
    • get video url
    • get comment url
  • tests/
    • boosty profile
    • test posts under my account
    • comments
    • replies
    • video
    • entities parsing
  • create dev branch

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

boosty-0.0.28.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

boosty-0.0.28-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file boosty-0.0.28.tar.gz.

File metadata

  • Download URL: boosty-0.0.28.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for boosty-0.0.28.tar.gz
Algorithm Hash digest
SHA256 84fe67e678136f06c9de540bb02f1e32d65a91e1e2441660b82ed378072cc265
MD5 bd2dc66e2ad04a923063fa8e564e4f67
BLAKE2b-256 9e2e2992bab7d516e388aa5dc04d63c057bef80409c488597495ba50fbb27ead

See more details on using hashes here.

File details

Details for the file boosty-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: boosty-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for boosty-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb23451b43cdb548dca22b2b0b5c488a838d27d53312661cdb24c3f9e466b9b
MD5 1bc4035f20cd77f4c5c579e1077a6818
BLAKE2b-256 47893ccc319f1ba1e526f8824e6a61d86a0008dfc5ddb0f9207da3d0307e258d

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