Giter VIP home page Giter VIP logo

libsaas's Introduction

This is libsaas, a library to take the pain out of using SaaS APIs.

It provides an abstraction layer on top of various APIs, taking care of constructing the URLs, serializing parameters and authentication. You just call Python methods and receive Python objects.

It's like an ORM for SaaS!

Libsaas is built by Ducksboard and distributed under the MIT license. You can file bugs in the issue tracker, browse the documentation or help out by constributing support for new services.

https://secure.travis-ci.org/ducksboard/libsaas.png?branch=master

libsaas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libsaas's Issues

Proposing a PR to fix a few small typos

Issue Type

[x] Bug (Typo)

Steps to Replicate and Expected Behaviour

  • Examine libsaas/services/stripe/charges.py, libsaas/services/stripe/customers.py, libsaas/services/stripe/events.py, libsaas/services/stripe/invoices.py, libsaas/services/stripe/resource.py and observe objetcs, however expect to see objects.
  • Examine libsaas/services/recurly/subscriptions.py and observe subsciription, however expect to see subscription.
  • Examine libsaas/services/bitbucket/repositories.py and observe resouce, however expect to see resource.
  • Examine libsaas/services/instagram/geographies.py and observe greography, however expect to see geography.
  • Examine libsaas/executors/twisted_executor.py and observe errorneous, however expect to see erroneous.
  • Examine README.rst and observe constributing, however expect to see contributing.
  • Examine libsaas/services/bitly/users.py and observe chronogical, however expect to see chronological.
  • Examine libsaas/services/fullcontact/resource.py and observe ambiguious, however expect to see ambiguous.
  • Examine doc/unicode.rst and observe adecuately, however expect to see adequately.
  • Examine libsaas/services/ducksboard/service.py and observe accesed, however expect to see accessed.

Notes

Semi-automated issue generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

To avoid wasting CI processing resources a branch with the fix has been
prepared but a pull request has not yet been created. A pull request fixing
the issue can be prepared from the link below, feel free to create it or
request @timgates42 create the PR. Alternatively if the fix is undesired please
close the issue with a small comment about the reasoning.

https://github.com/timgates42/libsaas/pull/new/bugfix_typos

Thanks.

Github documentation links to Pingdom

New PyPi release?

It seems that the last version on PyPi is "0.3", released in March 2013. I installed from PyPi and expected to use the Trello service... and then found out that it simply doesn't exist in that version, and no new release has been made either (despite this service being on the master branch for 2 months now). The version string in the repository also still says 0.3.

Are there any plans of releasing a new version (onto PyPi) in the near future?

SintaxError installing libsass with pip

I've add libsass to my pip requirements, pointing to the github repo:

git+https://github.com/ducksboard/libsaas

When installing it, I get this error:

SyntaxError: ('invalid syntax', ('/home/ygneo/.virtualenvs/bellucci/lib/python2.6/site-packages/libsaas/executors/twisted_executor.py', 138, 35, ' prepared = {name: [val] for name, val in headers.items()}\n'))

Anyway, pip says libsaas was successfully installed.

Feature request: add support for Zendesk token auth

Hi --

We're looking to use libsaas to communicate with Zendesk via their API token auth mechanism described here:

http://developer.zendesk.com/documentation/rest_api/introduction.html#security-and-authentication

However, Zendesk expects the following basic auth string: "{email_address}/token:{api_token}".

Perhaps, opening up the Zendesk.init() signature to accept a Zendesk token value would provide the ability to authenticate either with email and password or email and token.

/thor

New PyPi release

Would you mind putting a new release onto PyPi. It hasn't been updated in almost two years. I've spent too much time trying to figure out why the Github releases API wasn't usable only to find out that its not included in a released libsaas.

Thank you for your work on this package!

PyPI Release?

Any chance you guys could get a new PyPI release out? The published version doesn't have any ducksboard support :(

lxml.etree ElementTree is not the correct import

At libsaas/xml.py the etree import from lxml.etree is not correct, the import should be etree instead of ElementTree.

If you use it you get an AttributeError exception:
exceptions.AttributeError: 'builtin_function_or_method' object has no attribute 'fromstring'

AttributeError: 'User' object has no attribute 'collection_params'

I've been trying to recreate the example on the doc's homepage but I keep getting: AttributeError: 'User' object has no attribute 'collection_params'

Here's the traceback:

>>> nathan_tickets = service.user(nathan['id']).tickets_requested()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/nathan/Documents/kleekampnf/python-tasks/venv/lib/python2.7/site-packages/libsaas/services/base.py", line 45, in wrapped
    request, parser = f(*args, **kwargs)
  File "/Users/nathan/Documents/kleekampnf/python-tasks/venv/lib/python2.7/sitepackages/libsaas/services/zendesk/resources.py", line 118, in tickets_requested
    params = self.collection_params(page, per_page)
AttributeError: 'User' object has no attribute 'collection_params'

Is this project still active

Hi,
I'm looking at using this for a project and I'll need to write (at least) one new project connector and update the Bitbucket library to the v2 api (v1 is being turned off in a few months).

Is this project still active and would PRs be accepted? I see lots of changes floating around from the various forks ; some of which are already open as PRs.

If co maintainers would help I may be able to commit some time to helping out, if you are no longer using the library I'd be happy to take it over to keep it going.

thanks,
Karl.

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.