Skip to main content

Thin rest client with no dependencies

Project description

Thin rest client with no dependencies

Usage

Here is a sample usage:

from wrest import Client
client = Client('https://api.twitter.com/1')
tweets = client.get('statuses', 'user_timeline.json',
                      query={'screen_name':'kadirpekel', 'count':'10'}).as_json()
for tweet in tweets:
  print(tweet.get('text'))

Licence

Copyright (c) 2012 Kadir Pekel.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

wrest-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file wrest-0.1.3.tar.gz.

File metadata

  • Download URL: wrest-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wrest-0.1.3.tar.gz
Algorithm Hash digest
SHA256 aa46151b7bc97be6757693af9a165e4496889407a766c52b085b198978ec17f5
MD5 342cc3abffc36fbaf143820a79a2e38a
BLAKE2b-256 e75c61fa4e2319a9ab2c86f24c29a1a97c570cc2c81a65688fa9e4aa5b7fd95c

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