This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
python-api-client
=========================

Python client to connect to REST based api


This is still in its early stages and needs more tests and functionality for PUT, POST, PATCH and DELETE methods


To run the tests
----------------

pip install -r test_requirements.txt

python tests.py


Usage
-----

If you are using Django put the following in to your settings file:

```python
BASE_API_URL = "http://yourdomain.com/api/v2/"
```

If you are not using Django create a file called settings.py in your project and add the line to that.


Models:
```python
from python_api_client.models import Model


class MyModel(Model):
"""
This assumes a url of http://yourdomain.com/api/v2/mymodels/
if this is not the case you can override

@classmethod
def url(cls):
return 'whatever url you want'

"""
pass
```

Views:
```python
from .models import MyModel


my_models = MyModel.objects.all()

some_of_my_models = MyModel.objects.filter(something='s)

my_model = MyModel.objects.get(pk=2)
my_model.field = 'changed'
my_model.save()

```
Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_api_client-0.0.1.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Feb 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting