Skip to main content

A Python wrapper for the Sellix API

Project description

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.

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

stelix-1.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

stelix-1.0.2-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file stelix-1.0.2.tar.gz.

File metadata

  • Download URL: stelix-1.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for stelix-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dc404e6ba9850bc4fb38d525217fbbec574611399e7df6aeb59fbce7c59e6291
MD5 63b22a5b22fb98271693115a75cdb64f
BLAKE2b-256 f90a3e38eadc853f9e8d7fa6e9c76763c515fec9897a578445a0403a94e23804

See more details on using hashes here.

File details

Details for the file stelix-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: stelix-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for stelix-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bfcee27e1f889c23e5f99f1ce428ae7472c7ef3a747c1827d4471acc5f9c53b0
MD5 bf8be020010275fc1fe0f94017bd6962
BLAKE2b-256 c7de8bc257665ba82a1dadf69d7aad580393d55374f8e0d0ae6ed19112f53bf4

See more details on using hashes here.

Supported by

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