Hebe API
Unofficial library for programmatic access to your Hebe account and your orders.
pip3 install hebe-api
Usage:
Obtaining Hebe security token
from hebe_api import Hebe
hebe = Hebe("HEBE_USERNAME", "HEBE_PASSWORD")
hebe.authenticate()
print(hebe.token)
# T2a...................
or
from hebe_api import Hebe
hebe = Hebe()
hebe.authenticate("HEBE_USERNAME", "HEBE_PASSWORD")
print(hebe.token)
# E9U...................
Obtaining user orders
# Default values are as follows:
orders = hebe.get_orders(start=0, max_orders=100)
# order attributes
order = orders[0]
order.id # str
order.position # int (index in the array, used for retrieving the order products)
order.date # str
order.price # float
order.price_str # str
order.packs # int
Obtaining products of particular order
# Default values are as follows:
products = hebe.get_order_products(order)
# product attributes
product = products[0]
product.title # str
product.subtitle # str
product.total_price_str # str
product.package_price_str # str
product.total_price # float
product.package_price # float
product.quantity # int
Obtaining all products
# Default values are as follows:
all_products = hebe.get_all_products(max_orders=100)
Roadmap
- polish API supporting:
- auth
- get orders
- get products
.comhebe API support- auth
- get orders
- get products
Metadata
Release files for hebe-api 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hebe-api-1.0.2.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hebe_api-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / hebe-api-1.0.2.tar.gz
| Download URL | hebe-api-1.0.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6864eb59a1418780e72bb1e666b2f83d12c766aeb7a7948279f6271517582c66
|
|
BLAKE2b-256 checksum How to use checksums |
a4fd8bae328d056228ab8e6d0873ad0a56c2b656ada6c6df7e7c652892a29a8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / hebe_api-1.0.2-py3-none-any.whl
| Download URL | hebe_api-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00b659545d9405239b40910aee381eb1a3dae9c01e545b58d1124491b89484b5
|
|
BLAKE2b-256 checksum How to use checksums |
b1edeec48be5d6b0c0dcbed251dc68f266322a94486739242f7e6404a5380150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|