Skip to main content

pyAllegro is a framework, that provides a simple way to use Allegro Web API and Rest AP.

Project description

allegro-api

pyAllegro is a framework, that provides a simple way to use Allegro Web API and Rest AP. You don't need to know how RESTful, SOAP or oauth 2.0 works.

As for now it's prepared for getting data from allegro - not for managing your account or bidding.

Get started:

  1. Go to https://apps.developer.allegro.pl/ and register your app. You need to setup redirecion url to http://localhost:8000 - it will be your local server that recive your autorization data (oauth 2.0),
  2. Generate your app password here,
  3. Install pyAllegro with pip install pyAllegro
  4. Import from pyAllegro.api import AllegroRestApi, AllegroWebApi
  5. Setup credentials that you recived from allegro (by default it's saved here: '/Users/{user}/.allegroApiConfig'):
WebApi = AllegroWebApi()

WebApi.credentials_set(
        appName='<credentials from allegro>',
        clientId='<credentials from allegro>',
        clientSecred='<credentials from allegro>',
        userLogin='<allegro login>',
        redirectUrl='<redirect uri - the same you provided during app registration on allegro >',
        appPassword='<app password>'
        )

RestApi = AllegroRestApi()

RestApi.credentials_set(
        appName='<credentials from allegro>',
        clientId='<credentials from allegro>',
        clientSecred='<credentials from allegro>',
        redirectUrl='http://localhost:8000'
        )

How to use pyAllegro:

Allegro api documentation:

References

Thanks to:

To do

  • [ ] publish package on pypi
  • [ ] RestApi put
  • [ ] RestApi delete
  • [ ] restApi post

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyAllegro, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pyAllegro-0.0.4-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page