Skip to main content

PySellAuth

PySellAuth is a Python wrapper for the SellAuth API, allowing developers to manage shops, products, payments, customers, tickets, feedbacks, and more directly from Python.

Features

  • Full access to SellAuth API through Python.
  • Supports all modules including Shops, Products, Customers, Tickets, Feedbacks, Payments, Analytics, and more.
  • Typed methods and clear API calls.
  • Easy authentication using your API token.

Installation

pip install pysellauth

Initialization

from pysellauth import SellAuthClient

# Initialize the client with your API token
client = SellAuthClient(api_key="YOUR_API_KEY_HERE")

Modules Overview

Analytics

  • analytics.get_stats(shop_id): Retrieve analytics for a shop.

Blacklist

  • blacklist.list(shop_id): List all blacklist rules.
  • blacklist.add(shop_id, **kwargs): Add a new blacklist rule.
  • blacklist.remove(shop_id, blacklist_id): Remove a blacklist rule.

Blog Posts

  • blog.list(shop_id): List all blog posts.
  • blog.create(shop_id, title, content): Create a blog post.
  • blog.update(shop_id, post_id, **kwargs): Update a blog post.
  • blog.delete(shop_id, post_id): Delete a blog post.

Checkout

  • checkout.process(shop_id, data): Handle checkout requests.

Coupons

  • coupons.list(shop_id): List all coupons.
  • coupons.create(shop_id, code, discount, **kwargs): Create a coupon.
  • coupons.update(shop_id, coupon_id, **kwargs): Update a coupon.
  • coupons.delete(shop_id, coupon_id): Delete a coupon.

Crypto Wallet

  • crypto.list_wallets(shop_id): List crypto wallets.
  • crypto.add_wallet(shop_id, currency, address): Add a new wallet.
  • crypto.remove_wallet(shop_id, wallet_id): Remove a wallet.

Custom Fields

  • custom_fields.list(shop_id): List custom fields.
  • custom_fields.create(shop_id, name, field_type): Add a custom field.
  • custom_fields.update(shop_id, field_id, **kwargs): Update a custom field.
  • custom_fields.delete(shop_id, field_id): Delete a custom field.

Customers

  • customers.list(shop_id): List all customers.
  • customers.get(shop_id, customer_id): Retrieve a customer.
  • customers.create(shop_id, **kwargs): Create a customer.
  • customers.update(shop_id, customer_id, **kwargs): Update a customer.
  • customers.delete(shop_id, customer_id): Delete a customer.

Domains

  • domains.list(shop_id): List custom domains.
  • domains.add(shop_id, domain): Add a new domain.
  • domains.remove(shop_id, domain_id): Remove a domain.

Feedbacks

  • feedbacks.list(shop_id): List all feedbacks.
  • feedbacks.get(shop_id, feedback_id): Retrieve a feedback.
  • feedbacks.reply(shop_id, feedback_id, reply_text): Reply to a feedback.
  • feedbacks.dispute(shop_id, feedback_id, reason): Dispute a feedback.

Groups

  • groups.list(shop_id): List all groups.
  • groups.create(shop_id, name): Create a group.
  • groups.update(shop_id, group_id, **kwargs): Update a group.
  • groups.delete(shop_id, group_id): Delete a group.

Images

  • images.upload(shop_id, file_path): Upload an image.
  • images.delete(shop_id, image_id): Delete an image.

Invoices

  • invoices.list(shop_id): List invoices.
  • invoices.create(shop_id, **kwargs): Create invoice.
  • invoices.update(shop_id, invoice_id, **kwargs): Update invoice.
  • invoices.delete(shop_id, invoice_id): Delete invoice.

Notifications

  • notifications.list(shop_id): List notifications.
  • notifications.send(shop_id, message, **kwargs): Send notification.

Payment Methods

  • payment_methods.list(shop_id): List payment methods.
  • payment_methods.add(shop_id, type, **kwargs): Add a payment method.
  • payment_methods.update(shop_id, method_id, **kwargs): Update payment method.
  • payment_methods.delete(shop_id, method_id): Delete payment method.

Payment Processors

  • payment_processors.list(shop_id): List payment processors.
  • payment_processors.add(shop_id, name, **kwargs): Add processor.
  • payment_processors.update(shop_id, processor_id, **kwargs): Update processor.
  • payment_processors.delete(shop_id, processor_id): Delete processor.

Products

  • products.list(shop_id): List all products.
  • products.get(shop_id, product_id): Retrieve a product.
  • products.create(shop_id, **kwargs): Create a product.
  • products.update(shop_id, product_id, **kwargs): Update a product.
  • products.delete(shop_id, product_id): Delete a product.

Shops

  • shops.list(): List all shops.
  • shops.get(shop_id): Retrieve a shop.
  • shops.create(name, subdomain, logo=None): Create a shop.
  • shops.update(shop_id, **kwargs): Update a shop.
  • shops.delete(shop_id, password, name): Delete a shop.
  • shops.stats(shop_id): Get shop statistics.

Tickets

  • tickets.list(shop_id, **filters): List tickets.
  • tickets.get(shop_id, ticket_id): Retrieve a ticket.
  • tickets.create(shop_id, customer_id, subject, invoice_id=None): Create ticket.
  • tickets.close(shop_id, ticket_id): Close ticket.
  • tickets.reopen(shop_id, ticket_id): Reopen ticket.
  • tickets.archive(shop_id, ticket_id): Archive ticket.
  • tickets.unarchive(shop_id, ticket_id): Unarchive ticket.
  • tickets.send_message(shop_id, ticket_id, content): Send a message.
  • tickets.delete_message(shop_id, ticket_id, message_id): Delete a message.

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make changes
  4. Commit: git commit -m "Add feature"
  5. Push: git push origin feature-name
  6. Open a Pull Request

License

MIT License

Release files for pysellauth 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysellauth 0.1.1
File Size Uploaded
pysellauth-0.1.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysellauth 0.1.1
File Interpreter ABI Platform
pysellauth-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.0 kB

Release files / pysellauth-0.1.1.tar.gz

Download URL pysellauth-0.1.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
57ec232e30edd852d4fd91ab01e3427e31f53be4d691fc22e1b5680885a552e6
BLAKE2b-256 checksum
How to use checksums
5e0301d617d7fb6327a1b0f0e34eafa4cf39ce5a93de03e44a6b1e29791d4ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / pysellauth-0.1.1-py3-none-any.whl

Download URL pysellauth-0.1.1-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24e3ac4cd822fc7f6db59a1224adfe98c1d8cf8bb594893c94c82fd4bbe78d1f
BLAKE2b-256 checksum
How to use checksums
38b8831e3fa87324527313250c3aa570ca4806a4ba972a689b7e1412a504854d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page