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 | RSS feed

This version

0.5

Download files

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

Source Distribution

pyuploadcare-sqlalchemy-0.5.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file pyuploadcare-sqlalchemy-0.5.tar.gz.

File metadata

File hashes

Hashes for pyuploadcare-sqlalchemy-0.5.tar.gz
Algorithm Hash digest
SHA256 20a006318756c04818c7a994ed4cf7eb1baff529728b54b0968c04f8cf725bae
MD5 c1aa76d034a35fa74c4809b19e6f5210
BLAKE2b-256 478aa84cb2b13f3555e3c243fa19ac379f2bec36ed0326007ab8cd81bbece7bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page