cf_s3field.S3ImageField
-----------------------
``s3ImageField`` is django model field which is replacement for django ``ImageField``.
```python
from cf_s3field.files import S3ImageField
class User(models.Model):
first_name = models.CharField(max_length=100)
profile_pic = S3ImageField(bucket='<your bucket>', key='profile_user_{first_name}')
user = User.objects.get(id=1)
user.first_name = "Hitul"
user.save()
```
In above example key ``first_name`` will be replaced by ``Hitul``. ImageField will also accept default django ImageField parameters. key is file name format. In s3 you will store multiple files. To seperate all images from each other key is introduced. Key values will be repalced by values specified in as extra attributes.
cf_s3field.S3FileField
-----------------------
``s3FileField`` is django model field which is replacement for django ``FileField``.
```python
from cf_s3field.files import S3ImageField
class User(models.Model):
first_name = models.CharField(max_length=100)
resume = S3FileField(bucket='<your bucket>', key='profile_user_{first_name}')
user = User.objects.get(id=1)
user.first_name = "Hitul"
user.save()
```
0.0.4 - Fri Oct 30
------------------
- Django 1.7 support
0.0.3 - Wed Oct 28
------------------
- No need to specifify migrate as argument
- Lazy connection implemented. When someone uploads at that time connection to boto will be created.
0.0.2 - Mon Oct 26
------------------
- README.md file changed to README.rst
- Debug statements removed
0.0.1 - Sat Oct 24
------------------
Initial release
Metadata
Release files for cf_s3field 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cf_s3field-0.0.4.zip | 12.6 kB | Without provenance | Details for cf_s3field-0.0.4.zip | |
| cf_s3field-0.0.4.tar.gz | 8.7 kB | Without provenance | Details for cf_s3field-0.0.4.tar.gz |
Release files / cf_s3field-0.0.4.zip
| Download URL | cf_s3field-0.0.4.zip |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2797dc8d4771021199cb48516c985d898b1441481abbddd209e39ea116e83a4
|
|
BLAKE2b-256 checksum How to use checksums |
2993ebc4ac2c6e4e077b829173eb43ebae040f7cf990ef4c23db5fac406ccf8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cf_s3field-0.0.4.tar.gz
| Download URL | cf_s3field-0.0.4.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b5420f12d204cc2a47b09a37747fa37e9d067b50fa1f0797e80622387058bc9
|
|
BLAKE2b-256 checksum How to use checksums |
b54475cf7be77875dd769e5d488c06e0047fff7c19d549247881699efad225dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cf_s3field 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.