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
Phial API
==================

Phial API is a project that exposes a consistant way to interact with multiple storage engines. It leverages [django-rest-framework](https://github.com/tomchristie/django-rest-framework) for file uploading, parsing and all the goodies that DRF offers, as well as django storages to add to django's storage engine's.

**With Fig/Docker**

# Grab the code
git clone git@github.com:derek-adair/flex-api.git && cd flex-api
# spin up the initial containers (this should throw some db errors, django isn't installed)
fig up
# Create a throw-away container and install django / app tables / super user
fig run --rm web syncdb
# re-create containers
fig up
#App should be running on localhost:8080 via forwarded docker port.

**Manual setup**

If you insist on building this manually, be my guest, but its by far easier to learn/install/use Docker and fig. Before you can do this I'd suggest working in [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/) with python-2.7.

Install psql/psychopg2 deps on Ubuntu (look [here](https://wiki.postgresql.org/wiki/Detailed_installation_guides) for other instuctions):
```
DEBIAN_FRONTEND=noninteractive && \
apt-get update -y && \
apt-get install -y libpq-dev
```
Install python packages
```
pip install -r requirements.txt
```
Set env variables

```
export AWS_UPLOAD_CLIENT_SECRET_KEY='keep me secret!'
export AWS_UPLOAD_CLIENT_KEY='who cares if i am secret'
#not the entire ARN resource, just the bucket name
export AWS_EXPECTED_BUCKET='your-bucket'
export AWS_EXPECTED_SIZE='XXXX'
```
Sync/Run it...
```
./manage.py migrate
./manage.py collectstatic
./manage.py runserver 0.0.0.0:8080
```


.. :changelog:

History
=======

0.0.1 (2015-03-30)
------------------

- Initial pre-alpha release.



Credits
=======

“phial_api” is written and maintained by Derk Adair.


Contributors
------------

The following wonderful people contributed directly or indirectly to this project:

- `Derek Adair <https: github.com="" derek-adair="">`_

Please add yourself here alphabetically when you submit your first pull request.
Release History

Release History

0.0.2

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

0.0.1

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
phialapi-0.0.2.tar.gz (18.2 kB) Copy SHA256 Checksum SHA256 Source Apr 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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