Skip to main content

Paquete de ayuda para usar SAMBA con Python con smb.

Project description

JSMB

Paquete de ayuda para usar SAMBA con Python con smb. Con el puedes listar, descargar, subir y remover archivos de directorios.

Lo primero es definir siempre la conexión y usala como base para todos procesos.

Conexion basica:

con = jsmb.jsmb('ip','user','pass')

Listar Archivos

list = con.list('Nombre de Carpeta') for i in range(len(list)): print(list[i].filename)

Subir archivos a servidor

con.upload('Carpeta Compartida Inicial', 'archivo en tu maquina', 'Ubicacion del Archivo dentro de la carpeta')

Descargar archivos del servidor

con.download('Carpeta Compartida Inicial', 'Nombre del archivo en tu maquina', 'Ubicacion del Archivo en Carpeta Inicial')

Eliminar archivos del servidor

con.delete('Carpeta Compartida Inicial', 'Ubicacion del Archivo en Carpeta Inicial')

Crear carpeta

con.mkdir('Carpeta Compartida Inicial', 'carpeta/subcarpeta/subcarpeta')

Esta es la versión 0.1 de este modulo.

Saludos

Jonatan dos Santos.

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

jsmb-1.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

jsmb-1.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file jsmb-1.0.3.tar.gz.

File metadata

  • Download URL: jsmb-1.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for jsmb-1.0.3.tar.gz
Algorithm Hash digest
SHA256 db79f31d4cb8a090d0af4deb93903ccba3669f734cb74b10782129a89a9fe384
MD5 50eaebb37afa69c6445e634faf2f2b88
BLAKE2b-256 2bf704d2f9cc41887ca8e57a98be7f8881d3b5e5feb653777f066c3c10aad64a

See more details on using hashes here.

File details

Details for the file jsmb-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: jsmb-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for jsmb-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb766b09949d3ad41de2ff557ab2226bf484181194c51a437d31e577dee475e9
MD5 25a0e302d26305e36ecb97d85bd3c108
BLAKE2b-256 a97b3d1821d15e624c99a5f98af175c03ef90d29c85f839399faf81be4d8ffe7

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