GithubHelp home page GithubHelp logo

pxmagic's Introduction

500px Python Magical API Client

This is the magical API client!

Soon ๐ŸŒ… and ๐ŸŒ‰ will be on your monitor!

So some quick things you NEED to know before you get started:

  1. You can either use the magical caching way of using the app with things like : zach = User(username='zachaysan') zach.friends.first().username

    Or you can go the more traditional route ( see examples/popular_photos.py )

  2. There are caches and generators everywhere. I haven't gotten around to making sure that the caches get cleared automatically.

  3. Usually generators will continue to yeild, regardless of the how many results come in a single page from the api. It will just keep paging until it runs out of results.

  4. There is a really hairy issue with Users due to me being dumb. Basically I should have broken up Users into AuthorizedUser and User, where the AuthorizedUser has successfully authenticated with the app.

  5. This library was written with two styles of apps in mind. First: a traditionally client app library (for example, using this to write an Ubuntu app), Second: a web server.

  6. Before you do anything you need to create helpers/authentication.py and provided 3 functions: get_consumer_key(), get_consumer_secret(), and get_verify_url(). You can see an example of how this looks at helpers/authentication.example.py

To run test suite

  1. Ignore tests/settings.py since most of the OAuth tests assume that you have access to the zachaysan account.
  2. python -m discover

pxmagic's People

Contributors

arthurnn avatar zachaysan avatar

Watchers

 avatar  avatar

Forkers

enterstudio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.