Metadata-Version: 2.1
Name: saleor-sdk-python
Version: 0.0.2
Summary: 
Home-page: https://github.com/mirumee/saleor-sdk-python
Author: Paweł Kucmus
Author-email: pawel.kucmus@mirumee.com
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: click (>=8,<9)
Requires-Dist: cryptography (>=39,<40)
Requires-Dist: pydantic (>=1,<2)
Requires-Dist: pyjwt (>=2,<3)
Requires-Dist: tomli (>=2,<3)
Project-URL: Repository, https://github.com/mirumee/saleor-sdk-python
Description-Content-Type: text/markdown

# Saleor SDK Python

A set of tools that help Python developers work with Saleor. This is a very early stage in the life of this library and many things are not yet figured out. 

Documentation, contribution rules, process and the code itself (this includes the APIs) are expected to change rapidly.

## Installation

Install [Poetry](https://python-poetry.org/docs/#installing-with-pipx).

Clone the repository and invoke:

```
poetry install
```

## Documentation

In the Poetry shell (`poetry shell` after installing the dependencies), run:

```
mkdocs serve
```

and navigate to http://127.0.0.1:8000

## Tooling

This library provides a CLI that contains a growing set of commands that are useful in day-to-day development around Saleor.

There are two entrypoints (here is a [good article](https://snarky.ca/why-you-should-use-python-m-pip/) on why this is important):

```sh
python -m saleor_sdk tools
saleor_sdk tools
```

### Saleor ID encoding

```sh
saleor-sdk tools decode-id VXNlcjoyMg==
saleor-sdk tools encode-id User 22
```

