Skip to main content

Package for upload data in before commit uncommited files to sftp server

Project description

Table of content

  1. What's this, what it's need it? - description of package
  2. Installation - how to install package
  3. Setup - how to setup package
  4. How script is work - description of working
  5. TODO - what i need todo in nearby future (task list for me)

🧐What's this, what it's need it?

This script (library) need for upload to sftp before commit files which was changed. It's very comfortable script for me, but if you need it you can use it ! :)

📥Installation

With pip:

pip install sftp-uploader

With poetry:

poetry add sftp-uploader

⚙️ Setup

For setup sftp config, you need to execure command sftp_setup. After this, you need to input host, port, user, password of your sftp server, and after that input a path to remote directory which contain your project, for example:

Your project in /path/to/my/project
Your input `/path/to/my/project` <b>WITHOUT</b> slash in the end (in future a fix it, but now - it's work how it's work), and this directory need to be <b>EXIST</b>

After that script add config file to .gitignore and add script to load files in pre-commit hook file of git. And that's it! Your perfect!!!


You can change in any time config (config name - sftp_config.json in root project directory), if you need it, or if any step is broken you can re-execute command and get success result, if any step do not need it, script just skip it and all.

💪How script is work

Script after you execure command sftp_setup ask you a questions about sftp configuration, exactly host, port, username, password of sftp connection and after that you remote directory of project root. After you fill this mini-form, a script create a file sftp_config.json which contain all of this information (not encrypted, it's just a json format), and with configuration of sftp and filling form is end.

Next step it's create git (if not exists) and gitignore file (if not exist), after that, script add sftp_config.json file to gitignore (i think you don't need save your sftp data in your github 😁).

In the next step, script create or use existed pre-commit file, which contain bash script which start before you make a commit, you can see a little logs about proccess, how it start, which files upload which not upload, and after that you can make a commit.

🤔TODO

[x] Make title, description, which problem is solve, metter of this project description

[ ] Add more classifiers

[ ] Add tests

[x] Add additional links to project conf

[x] Add poetry scripts and pre-commit scripts

[x] Add poetry post install, if git exists and to gitignore and setup pre commit hook, and setup config module, if not exists, create and setup it

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

sftp_uploader-1.0.16.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

sftp_uploader-1.0.16-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file sftp_uploader-1.0.16.tar.gz.

File metadata

  • Download URL: sftp_uploader-1.0.16.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.5.0

File hashes

Hashes for sftp_uploader-1.0.16.tar.gz
Algorithm Hash digest
SHA256 9ce127f46126e5a76e977c9e60fbd54b66382bd2dc5b59670ade4d1748555cd2
MD5 1dec30ef34e6e96ee202c97e188b282a
BLAKE2b-256 4f9a8abeb7bfa14a2fe695bc0cb4e452cd8c4a06bda965065bc9a81a1668f2c5

See more details on using hashes here.

File details

Details for the file sftp_uploader-1.0.16-py3-none-any.whl.

File metadata

  • Download URL: sftp_uploader-1.0.16-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.5.0

File hashes

Hashes for sftp_uploader-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a0028c415dbe125751deed21d856c1279de13b53fefd3442fd7cd3571d16bdfb
MD5 d426eedfe7a1c61f2b1c375412490c17
BLAKE2b-256 ce447b738e5b4bb76f53b17e71d45eb3d4adcffb1f6172691082e6723d2d6716

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