Asynchronous boosty wrapper with some utils
Project description
Boosty Wrapper
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
# or add these lines before first boosty import
import os
os.environ["IGNORE_MISSING_AND_EXTRA_FIELDS"] = "true"
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/
- complete api schema (at 100 stars)
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boosty-0.0.32.tar.gz.
File metadata
- Download URL: boosty-0.0.32.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85273da7ae290b08414f88b50d9508501d16a7649d4f4ca06843cbd1088ca8ec
|
|
| MD5 |
5f847b9855d79b988b44f652539a6b30
|
|
| BLAKE2b-256 |
8a7aeca8b2e431fa0e8affe00d30083deef320f39c646fcea87a08de04ef6de3
|
Provenance
The following attestation bundles were made for boosty-0.0.32.tar.gz:
Publisher:
publish.yml on barsikus007/boosty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boosty-0.0.32.tar.gz -
Subject digest:
85273da7ae290b08414f88b50d9508501d16a7649d4f4ca06843cbd1088ca8ec - Sigstore transparency entry: 186773478
- Sigstore integration time:
-
Permalink:
barsikus007/boosty@fa2c6ffda36f6ab1013709122c5de91ad81601da -
Branch / Tag:
refs/tags/0.0.32 - Owner: https://github.com/barsikus007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fa2c6ffda36f6ab1013709122c5de91ad81601da -
Trigger Event:
push
-
Statement type:
File details
Details for the file boosty-0.0.32-py3-none-any.whl.
File metadata
- Download URL: boosty-0.0.32-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e73cc7df0e2d911e7320030eef9f21153f6724f49155bc066903a89e780e4e
|
|
| MD5 |
db84f1ba7fe18c1d2dca9cc722032250
|
|
| BLAKE2b-256 |
4909a05bb9db9d1d6ae1510126375c92f6c68edb9a52192b1db837fee9135932
|
Provenance
The following attestation bundles were made for boosty-0.0.32-py3-none-any.whl:
Publisher:
publish.yml on barsikus007/boosty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boosty-0.0.32-py3-none-any.whl -
Subject digest:
32e73cc7df0e2d911e7320030eef9f21153f6724f49155bc066903a89e780e4e - Sigstore transparency entry: 186773489
- Sigstore integration time:
-
Permalink:
barsikus007/boosty@fa2c6ffda36f6ab1013709122c5de91ad81601da -
Branch / Tag:
refs/tags/0.0.32 - Owner: https://github.com/barsikus007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fa2c6ffda36f6ab1013709122c5de91ad81601da -
Trigger Event:
push
-
Statement type: