Skip to main content

Custom fields types for SqlAlchemy which integrated with Uploadcare service.

Project description

Latest PyPI version Build status

Custom fields types for SqlAlchemy which integrated with Uploadcare service.

Installation

$ pip install pyuploadcare-sqlalchemy

Usage

This package similar to pyuploadcare.dj but for Sqlalchemy instead of Django’s ORM. It stores Uploadcare CDN links on database’s side and builds a object of File (or FileGroup) on python’s side (e.g you can easily use it in yours templates).

Fields types:

  • FileType
  • FileGroupType
  • ImageType - Provides syntax sugar when working with images - effects - you can set default effects according by CDN API which will be applied to uploaded image.

Also for getting started you can look at this simplest example.

For install it use a command:

$ make run_example

Contributing

  1. Fork the pyuploadcare-sqlalchemy repo on GitHub.
  2. Clone your fork locally:
$ git clone git@github.com:your_name_here/pyuploadcare-sqlalchemy.git
  1. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:
$ mkvirtualenv pyuploadcare-sqlalchemy
$ cd pyuploadcare-sqlalchemy/
$ python setup.py develop
  1. Create a branch for local development:
 $ git checkout -b name-of-your-bugfix-or-feature

Now you can make your changes locally.
  1. When you’re done making changes, check that your changes pass the tests, including testing other Python versions with tox:
$ pip install tox
$ tox
  1. Commit your changes and push your branch to GitHub:
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
  1. Submit a pull request through the GitHub website.

Project details


Release history Release notifications

This version
History Node

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyuploadcare-sqlalchemy-0.5.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page