Skip to main content

Simple REST API client library

Project description

REST on shelf

Simple and universal async REST API client library.

Install

$ pip install shelf

Usage

import shelf
import asyncio

github = shelf.Client('https://api.github.com/')

async def find_user_name(login: str):
    user = await github.users[login]()
    return user.name

asyncio.run(find_user_name('hanula'))

Features

  • Dot notation URL path traversal.
  • Dot notation access of the response data.

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

shelf-0.2.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

shelf-0.2.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file shelf-0.2.0.tar.gz.

File metadata

  • Download URL: shelf-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for shelf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 948d2f85926ec6c807a7641ee438081e0885ed6942a05bbabe286076b2509dfa
MD5 5688e3c6f43ab9b48e665e516d19b93d
BLAKE2b-256 cce4ef65f1c42524472b89ef2c37009b0b30623465cb950310a622b4918ce698

See more details on using hashes here.

File details

Details for the file shelf-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shelf-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for shelf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82d6dae20d1caf6b3a6be6ea6a6fafcbf1d273c9b26876f0d17b7782067f2c6d
MD5 5b7e3a88d21e2c2892778739535f6347
BLAKE2b-256 ea631a8b36397bc2da3febdf83477dda9a71bdbd756f0b19ab356c51203bb5e9

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