Skip to main content

A general REST based ORM.

Project description

import pyresto.apis.GitHub as GitHub
import operator

user = GitHub.User.get('berkerpeksag')
all_commits = reduce(operator.add, [r.commits for r in user.repos], [])
own_commits = [c for c in all_commits if c['committer'] and c['committer']['login'] == user.login]
len(own_commits)  # 508

Installation

To install Pyresto, simply:

$ pip install pyresto

Source Code

GitHub

License

All files that are part of this project are covered by the following license, except where explicitly noted.:

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

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

pyresto-0.1.zip (7.9 kB view details)

Uploaded Source

File details

Details for the file pyresto-0.1.zip.

File metadata

  • Download URL: pyresto-0.1.zip
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyresto-0.1.zip
Algorithm Hash digest
SHA256 25698484015f130a9c718d248cc20e247e9cdc8567b4e6b29d6268d72f3ff866
MD5 7d26575789d26f356b0567ef7e959902
BLAKE2b-256 552055da0d5fb73cef9241ab035aaab532a58f9ae3cc32da71e82df09de628bd

See more details on using hashes here.

Supported by

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