Skip to main content

python3 fastdfs package

Project description

fdfs-client-py3 Package

1. Installation

pip install fdfs-client-py3==1.0.0

2. Getting Started

upload file

1)upload file by name

from fdfs_client.client import Fdfs_client
client = Fdfs_client('/path/to/fdfs/client.conf')
res = client.upload_by_filename('/path/to/upload_file')

# res:
# {
#   'Status': 'Upload successed.', 
#   'Local file name': '', 
#   'Storage IP': '192.168.19.131', 
#   'Group name': 'group1', 
#   'Remote file_id': 'group1/M00/00/02/wKgTg18Bnz2ASFgeAAAswnVEUA47566649', 
#   'Uploaded size': '11.19KB'
# }

2)upload file by content

from fdfs_client.client import Fdfs_client
client = Fdfs_client('/path/to/fdfs/client.conf')
file = open('/path/to/upload_file')
res = client.upload_by_filename(file.read())

# res:
# {
#   'Status': 'Upload successed.', 
#   'Local file name': '', 
#   'Storage IP': '192.168.19.131', 
#   'Group name': 'group1', 
#   'Remote file_id': 'group1/M00/00/02/wKgTg18Bnz2ASFgeAAAswnVEUA47566649', 
#   'Uploaded size': '11.19KB'
# }

3. Author

the author is smarli,if you has some quesion,you can contact us by email to smartli_it@163.com

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

fdfs-client-py3-1.0.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fdfs_client_py3-1.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file fdfs-client-py3-1.0.0.tar.gz.

File metadata

  • Download URL: fdfs-client-py3-1.0.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.2

File hashes

Hashes for fdfs-client-py3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8ac3b2a7784266fd2cf00fa27837b5a89c8be26e522de448317249fc5f778b0f
MD5 1a404f751f3dca9e22e38f62548ed2f4
BLAKE2b-256 8c057719a97b6f9d731bbcb7d68e2102ef0448a1076ac919afa836e84c7f8bc8

See more details on using hashes here.

File details

Details for the file fdfs_client_py3-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fdfs_client_py3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.2

File hashes

Hashes for fdfs_client_py3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 520f03a715c7344f26b59720793421d4b1208f1ea5c0c767db22b929b91187a4
MD5 daf9f8babd02d4f11feb79771825f826
BLAKE2b-256 a2a99ada38ff78d1e45394e0b409904d65a2a11d43f4ae33d40cf553bc46470f

See more details on using hashes here.

Supported by

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