Skip to main content

A Python wrapper for the Atshop API

Project description

Installation

Use the package manager pip to install Atshop.

pip install atshop

Usage

from atshop import Client

client = Client()
client.login('token')

product = client.request(
    method='admin.product.add',

    shop_id='4AueTN7mx6xRurrfu',
    product={
        'name': 'Clap is cool <3',
        'description': '',
        'purchaseNotes': '',
        'value': 100,
        'icon': '',
        'minQuantity': 1,
        'maxQuantity': 0,
        'image_url': '',
        'style': 'box',
        'requireShipping': 'no',
        'paymentMethods': [],
        'maxDisplayedStock': 0,
        'preventDuplicates': True,
        'priority': 0,
        'category': '',
        'displayDescription': True,
        'useOrderIdAsItemName': False,
        'hidden': False,
        'notForSale': False
    }
)

print(product['result'])

Documentation

Everything you need is listed in the Atshop 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

atshop-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atshop-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file atshop-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for atshop-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d891dea16093513f38dbb05d2047e0276c2c48b7b1336e0d8d091e67637f6d5
MD5 77631ead1601ca36f9b64d12f738bdaa
BLAKE2b-256 454adddddd4ca2d6f9b794c90b3e7894eb24625b85588f465c3b05b8e23bda3e

See more details on using hashes here.

File details

Details for the file atshop-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: atshop-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for atshop-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33fd946d596e2921a11af5547efdaab2859c70255c1e1b4c18158179a8640e30
MD5 6c840b0beef88e5092270dbf3c6507b7
BLAKE2b-256 a24bb3ea26b7002ea07333aeed50554e8b7839ee6bf6aa2d4a5631d9a1b60554

See more details on using hashes here.

Supported by

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