https://github.com/the-allanc/lamium
https://github.com/the-allanc/lamium
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/the-allanc/lamium
- Owner: the-allanc
- License: mit
- Created: 2016-03-26T01:30:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T15:34:30.000Z (over 1 year ago)
- Last Synced: 2025-01-27T11:45:12.401Z (5 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. |name| replace:: lamium
.. |summary| replace:: 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.|name|
======|summary|
.. _repository: https://github.com/the-allanc/lamium/
.. _documentation: https://lamium.readthedocs.io/en/stable/
.. _pypi: https://pypi.python.org/pypi/lamium
.. _coveralls: https://coveralls.io/github/the-allanc/lamium
.. _license: https://github.com/the-allanc/lamium/master/LICENSE.txt
.. _travis: https://travis-ci.org/the-allanc/lamium
.. _codeclimate: https://codeclimate.com/github/the-allanc/lamium.. |Build Status| image:: https://img.shields.io/travis/the-allanc/lamium.svg
:target: travis_
:alt: Build Status
.. |Coverage| image:: https://img.shields.io/coveralls/the-allanc/lamium.svg
:target: coveralls_
:alt: Coverage
.. |Docs| image:: https://readthedocs.org/projects/lamium/badge/?version=stable&style=flat
:target: documentation_
:alt: Docs
.. |Release Version| image:: https://img.shields.io/pypi/pyversions/lamium.svg
:target: pypi_
:alt: Release Version
.. |Python Version| image:: https://img.shields.io/pypi/v/lamium.svg
:target: pypi_
:alt: Python Version
.. |License| image:: https://img.shields.io/pypi/l/lamium.svg
:target: license_
:alt: License
.. |Code Climate| image:: https://img.shields.io/codeclimate/issues/github/the-allanc/lamium.svg
:target: codeclimate_
:alt: Code Climate|Docs| |Release Version| |Python Version| |License| |Build Status| |Coverage| |Code Climate|
.. all-content-above-will-be-included-in-sphinx-docs
Lamium contains three main types of object:
- Location
- Resource
- SessionHere'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`__.
__ documentation_