Lamium is a library which provides some syntactic sugar around the requests library to make it nicer to construct URLs, similar to projects like Hammock and Tortilla.
Lamium contains three main types of object:
- Location
- Resource
- Session
Here's what the current example from Hammock looks like in Lamium:
>>> from lamium import Session >>> github = Session().at('https://api.github.com').URL >>> resp = github.repos('kadirpekel', 'hammock').watchers.GET() >>> watchers = [watcher.get('login') for watcher in resp.json()]
You can browse the source code and file bug reports at the project repository. Full documentation can be found here.