Stelix
A Python wrapper for the Sellix API
Installation
Use the package manager pip to install foobar.
pip install stelix
Usage
import stelix
sellix = stelix.Sellix(
secret_key='SECRET_KEY'
)
coupon = sellix.request(
method='create', # What you want to do, in this case we want to create a new coupon code
endpoint='coupon', # The API Endpoint you are trying to access
code='stelix is awesome',
discount_value=0.15,
max_uses=5,
products_bound=[
'stelix2021abc'
]
# Passing the arguments required to create the coupon code, some are
# required while some are not, read more at https://developers.sellix.io
)
print(coupon['data']['uniqid']) # Getting the ID of the newly created coupon code
Documentation
Everything you need is listed in the Sellix Documentation.
Metadata
Release files for stelix 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 | |
|---|---|---|---|
| stelix-1.0.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stelix-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / stelix-1.0.2.tar.gz
| Download URL | stelix-1.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc404e6ba9850bc4fb38d525217fbbec574611399e7df6aeb59fbce7c59e6291
|
|
BLAKE2b-256 checksum How to use checksums |
f90a3e38eadc853f9e8d7fa6e9c76763c515fec9897a578445a0403a94e23804
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Release files / stelix-1.0.2-py2.py3-none-any.whl
| Download URL | stelix-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bfcee27e1f889c23e5f99f1ce428ae7472c7ef3a747c1827d4471acc5f9c53b0
|
|
BLAKE2b-256 checksum How to use checksums |
c7de8bc257665ba82a1dadf69d7aad580393d55374f8e0d0ae6ed19112f53bf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|