Skip to main content

Human friendly HTTP client for RESTful APIs

Project description

resourceful

Human friendly HTTP client for RESTful APIs

Usage

>>> import resourceful
>>> solaire = resourceful.API(url='https://api.le-systeme-solaire.net/rest')
>>> bodies = solaire.resource('bodies')
>>> bodies.url
'https://api.le-systeme-solaire.net/rest/bodies'
>>> solaire.bodies.url
'https://api.le-systeme-solaire.net/rest/bodies'
>>> rsp = bodies.get()
>>> rsp.json()
{
  "bodies": [
    {
      "id": "lune",
      "name": "La Lune",
      "englishName": "Moon",
      "isPlanet": false,
      "moons": null,
      "semimajorAxis": 384400,
      "perihelion": 363300,
      "aphelion": 405500,
      "eccentricity": 0.0549,
      "inclination": 5.145,
      "mass": {
        "massValue": 7.346,
        "massExponent": 22
      },
      "vol": {
        "volValue": 2.1968,
        "volExponent": 10
      },
      "density": 3.344,
      "gravity": 1.62,
      "escape": 2380,
...

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

resourceful-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

resourceful-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file resourceful-0.1.0.tar.gz.

File metadata

  • Download URL: resourceful-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.10 Linux/5.15.0-48-generic

File hashes

Hashes for resourceful-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1047830be2b29849ba7fe11e22f25fe9ba068fbdce01d9743c32b95f8916936c
MD5 242bacda640fc49b267abe2c300a21a4
BLAKE2b-256 14bca2d68528ec9fda068c31ed3d107532e8ffcdfc8ed9c3b633e5a449270d21

See more details on using hashes here.

File details

Details for the file resourceful-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: resourceful-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.10 Linux/5.15.0-48-generic

File hashes

Hashes for resourceful-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aec825546d05477aca6cff768b8db403fabd5280940cea59abd0f3d1b397b4ab
MD5 ad2dba190c4fc4c82fcbaa0fc7aa0996
BLAKE2b-256 1fea962fea5209151df3a92ac0a3537c840e42551808023317c17805061006db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page