Skip to main content

A Python client library for django-s3-file-field.

Project description

django-s3-file-field-client

PyPI

A Python client library for django-s3-file-field.

Usage

from s3_file_field_client import S3FileFieldClient

s3ff_client = S3FileFieldClient(
    'http://localhost:8000/api/v1/s3-upload/',  # The path mounted in urlpatterns
)
with open('/path/to/my_file.txt') as file_stream:
    s3ff_client.upload_file(
        file_stream,  # This can be any file-like object
        'my_file.txt',
        'core.File.blob'  # The "<app>.<model>.<field>" to upload to
    )

Project details


Download files

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

Source Distribution

django-s3-file-field-client-0.0.20.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-s3-file-field-client-0.0.20.tar.gz.

File metadata

  • Download URL: django-s3-file-field-client-0.0.20.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for django-s3-file-field-client-0.0.20.tar.gz
Algorithm Hash digest
SHA256 7450c8b98e9746596c4dd3aa1deb6e5a50e56fc9cd3e387ffe3106f416cd0fe1
MD5 d73d617cc10aecac167880382a2cf46c
BLAKE2b-256 b50167b8c980f47609858cb0adaa34cc6475116f41dbd45aabc961fb49fe149c

See more details on using hashes here.

File details

Details for the file django_s3_file_field_client-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: django_s3_file_field_client-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for django_s3_file_field_client-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 a51b9c03789052389aa70838fff6b7e03c44dee826fecbda2c26756dd9b1d0af
MD5 b7c570b48d3ba45c32203851cb1d17e1
BLAKE2b-256 e21efacfa348122477731b7de331b398b74f49586d6aaec542956608a6407e69

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