File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55It aims at factoring the common parts of these clients while staying very lightweight (<100 SLOC). It only _ augments_
66the ` requests.Session ` class, so the base methods are still available.
77
8- We use it at [ Bixoto] ( https://bixoto.com/ ) as a basis for JSON API clients such as [ PyMagento] [ ] or [ PyBigBuy ] [ ] .
8+ We use it at [ Bixoto] ( https://bixoto.com/ ) as a basis for JSON API clients such as [ PyMagento] [ ] .
99
1010[ PyMagento ] : https://github.com/Bixoto/PyMagento
1111
12- [ PyBigBuy ] : https://github.com/Bixoto/PyBigBuy
13-
1412## Features
1513
1614* Base URL: the base API URL is given only once on object creation; subsequent calls use ` .get("/path") `
@@ -43,6 +41,8 @@ from api_session import APISession
4341
4442# The only requirement is to pass the base URL of the API you want to use.
4543# This does not prevent you from calling other URLs.
44+ #
45+ # Remember this is just an augmented `requests.Session()` object.
4646client = APISession(" https://httpbin.org" )
4747
4848# All requests methods are available:
You can’t perform that action at this time.
0 commit comments