Skip to main content

datapusher

Overvåker folder og sender data i nye/endrede filer som json til sprint-webserver.

Overvåke folder for endringer i filer

% pip install sprint-datapusher
% sprint_datapusher --help                                 
Usage: sprint_datapusher [OPTIONS] URL

  CLI for monitoring directory and send content of files as json to
  webserver URL.

  URL is the url to a webserver exposing an endpoint accepting your json.

  To stop the datapusher, press Control-C.

Options:
  --version                  Show the version and exit.
  -d, --directory DIRECTORY  Relative path to the directory to watch
                             [default: /home/stigbd/src/heming-
                             langrenn/sprint-excel/datapusher]

  -h, --help                 Show this message and exit.

Development

Requirements

% curl https://pyenv.run | bash
% pyenv install 3.9.1
% pyenv install 3.7.9
% python3 -m pip install --user pipx
% python3 -m pipx ensurepath
% pipx install poetry
% pipx install nox
% pipx inject nox nox-poetry

Install

% git clone https://github.com/heming-langrenn/sprint-excel.git
% cd sprint-excel/datapusher
% pyenv local 3.9.1 3.7.9
% poetry install

Run all sessions

% nox

Run all tests with coverage reporting

% nox -rs tests

Run cli script

% poetry shell
% sprint_datapusher --help

Alternatively you can use poetry run:

% poetry run sprint_datapusher --help

Release files for sprint-datapusher 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sprint-datapusher 0.1.2
File Size Uploaded
sprint-datapusher-0.1.2.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sprint-datapusher 0.1.2
File Interpreter ABI Platform
sprint_datapusher-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / sprint-datapusher-0.1.2.tar.gz

Download URL sprint-datapusher-0.1.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9d18fb0ae723b3390f2a9db9a90912a5f0b60cd4c2c7e91038314d25014581a2
BLAKE2b-256 checksum
How to use checksums
1510e27e5999438a9893b03f96210d1e9547b1eb3b8271da65f1b258f2263ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Release files / sprint_datapusher-0.1.2-py3-none-any.whl

Download URL sprint_datapusher-0.1.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
250409eb942d8b2edd428446af10629d857a2beb67ce6e72dca87f4659097f89
BLAKE2b-256 checksum
How to use checksums
0c4888d577bb49779473caeab4fa5c70b36f4ea3cc4fb533286c45ebb665da60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page