Custom fields types for SqlAlchemy which integrated with Uploadcare service.
Project description
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
Fork the pyuploadcare-sqlalchemy repo on GitHub.
Clone your fork locally:
$ git clone git@github.com:your_name_here/pyuploadcare-sqlalchemy.git
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
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
When you’re done making changes, check that your changes pass the tests, including testing other Python versions with tox:
$ pip install tox
$ tox
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
Submit a pull request through the GitHub website.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyuploadcare-sqlalchemy-0.5.tar.gz
.
File metadata
- Download URL: pyuploadcare-sqlalchemy-0.5.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a006318756c04818c7a994ed4cf7eb1baff529728b54b0968c04f8cf725bae |
|
MD5 | c1aa76d034a35fa74c4809b19e6f5210 |
|
BLAKE2b-256 | 478aa84cb2b13f3555e3c243fa19ac379f2bec36ed0326007ab8cd81bbece7bd |