No project description provided
Project description
tbzuploader
Generic http upload tool.
If the http upload was successfull, files get moved to a “done” sub directory.
Handles pairs of files.
For example you have for files: a.pdf, a.xml, b.pdf, b.xml
The first upload should take a.pdf and a.xml, and the second upload b.pdf and b.xml.
The upload is considered successfull by tbzuploader if the servers replies with http status 201 Created
Usage
Usage:
usage: tbzuploader [-h] [--patterns= LIST_OF_PATTERNS]
[--min-age-seconds MIN_AGE_SECONDS]
[--done-directory DONE_DIRECTORY]
[--no-ssl-cert-verification]
local_directory url
positional arguments:
local_directory
url
optional arguments:
-h, --help show this help message and exit
--patterns= LIST_OF_PATTERNS
List of file endings which should get uploaded
together. --patterns="*.pdf *.xml" foo.pdf and foo.xml
get uploaded together
--min-age-seconds MIN_AGE_SECONDS
Skip files which are too young. Default: 60
--done-directory DONE_DIRECTORY
files get moved to this directory after successful
upload. Defaults to {local_directory}/done
--no-ssl-cert-verification
Install
Install for usage from pypi:
pip install tbzuploader
Development
Install tbzuploader for development:
virtualenv tbzuploader-env cd tbzuploader-env . ./bin/activate pip install -e git+https://github.com/guettli/tbzuploader.git#egg=tbzuploader pip install -r src/tbzuploader/requirements.txt cd src/tbzuploader pytest # all test ok? pyCharm src/tbzuploader/... pytest # all test still ok? .... I am waiting for your pull request :-)
About
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tbzuploader-2017.7.0.tar.gz
(4.3 kB
view details)
File details
Details for the file tbzuploader-2017.7.0.tar.gz.
File metadata
- Download URL: tbzuploader-2017.7.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cf6b3151f3c67f5cd2ae85277ea59d5e2769a5f9d4763a8292fac787fd4e2a8
|
|
| MD5 |
ce751aaba94985978bb2a03d493d7725
|
|
| BLAKE2b-256 |
418b5be8b575bb8b5554562af0fb6fc2be6446b2b2e37c4b8a9b2a615f875f50
|