Skip to main content

Unofficial command line interface for keeping track of dm Fotoparadies orders.

Project description

fotoparadies-orders-cli

Unofficial command line interface for keeping track of dm Fotoparadies orders.

You can use it to store a list of orders (todo) or check your order directly via cli.

It uses the same api your browser would contact when using the website.

Installation

You can install it from PyPi

pip install --user fotoparadies-orders-cli-avra

I do not provide the api endpoint. You will need to set this up on your own. If there is an api_endpoint.txt in the current path the program will load its content as the endpoint. You can also specify the endpoint in your environment variables as FOTOPARADIES_API_URL. If your default shell is bash you can use:

echo 'export FOTOPARADIES_API_URL=<API_URL>' >> ~/.bash_profile

The env variable will be prioritized over api_endpoint.txt.

Usage

usage: -m [-h] [--shop SHOP] [--order ORDER] [--json]
optional arguments:
  -h, --help            show this help message and exit
  --shop SHOP, -s SHOP  shop number, used for direct api call
  --order ORDER, -o ORDER
                        order number, used for direct api call
  --json                return json of api call if using --shop and --order
$ fotoparadies                    # can be used without args to open a menu

$ fotoparadies -s 000 -o 000000   # returns order state immediately
2020-09-23: DELIVERED
Ihr Auftrag liegt zur Abholung bereit.
2,90 

Contributing

Pull requests/issues are welcome.

Disclaimer

This is an unofficial interface. This is in no way affiliated with dm, dm Fotoparadies or any of its subsidiaries. Use at your own risk.

License

MIT

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

fotoparadies-orders-cli-avra-0.1a1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

fotoparadies_orders_cli_avra-0.1a1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file fotoparadies-orders-cli-avra-0.1a1.tar.gz.

File metadata

  • Download URL: fotoparadies-orders-cli-avra-0.1a1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for fotoparadies-orders-cli-avra-0.1a1.tar.gz
Algorithm Hash digest
SHA256 b6ceb0841b05be43459c9932b6d0c052d83257199e6b0e2b18c7c93d89b8185d
MD5 8a27ef2ce6b61211470d129c860e1e2f
BLAKE2b-256 d573c7683d0ed23016aac3096e347a40d4062964a979a46c24024936c0604513

See more details on using hashes here.

File details

Details for the file fotoparadies_orders_cli_avra-0.1a1-py3-none-any.whl.

File metadata

  • Download URL: fotoparadies_orders_cli_avra-0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for fotoparadies_orders_cli_avra-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 28b38b1e57d4cf9e1813c89f066c9f855e62d8f742907c75b0eb62b760673174
MD5 c9ac769614dee3ff716898a7cbfde06c
BLAKE2b-256 19a338b8ec11d7bd6a6f91d555f5e3556ee6323fd1c9b985f731941a7296a1be

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