No project description provided
Project description
omnipy-examples
Example projects that that makes use of the omnipy package for type-driven, scalable and interoperable data wrangling!
Main installation instructions
- Install:
pip install omnipy-examples
- Run example scripts:
- Example:
omnipy-examples isajson
- For help on the command line interface:
omnipy-examples --help
- For help on a particular example:
omnipy-examples isajson --help
- Example:
Output of flow runs
The output will by default appear in the data
directory, with a timestamp.
- It is recommended to install a file viewer that are capable of browsing tar.gz files. For instance, the "File Expander" plugin in PyCharm is excellent for this.
- To unpack the compressed files of a run on the command line (just make sure to replace the datetime string from this example):
for f in $(ls data/2023_02_03-12_51_51/*.tar.gz); do mkdir ${f%.tar.gz}; tar xfzv $f -C ${f%.tar.gz}; done
Run with the Prefect engine
Omnipy is integrated with the powerful Prefect data flow orchestration library.
- To run an example using the
prefect
engine, e.g.:omnipy-examples --engine prefect isajson
- After completion of some runs, you can check the flow logs and orchestration options in the Prefect UI:
prefect orion start
More info on Prefect configuration will come soon...
Development setup
-
Install Poetry:
curl -sSL https://install.python-poetry.org | python3 -
-
Install dependencies:
poetry install --with dev
For mypy support in PyCharm
- In PyCharm, install "Mypy" plugin (not "Mypy (Official)")
which mypy
to get path to mypy binary- In the PyCharm settings for the mypy plugin:
- Select the mypy binary
- Select
pyproject.toml
as the mypy config file
For automatic formatting and linting
I have added my typical setup for automatic formatting and linting. The main alternative is to use black, which is easier to set up, but it does not have as many options. I am not fully happy with my config, but I at least like it better than black.
- In PyCharm -> File Watchers:
- Click arrow down icon
- Select
watchers.xml
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
Built Distribution
File details
Details for the file omnipy_examples-0.4.1.tar.gz
.
File metadata
- Download URL: omnipy_examples-0.4.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0b6c072657c40ec96e5528f3468baa3aca744fdbc838b02116eb9abd022819d |
|
MD5 | ffa594e1b4d299751e38a22a95f3442f |
|
BLAKE2b-256 | 36507811e043f9a97d75e0961efe286230c37fc6abb02fa6249e199b0f8161ad |
File details
Details for the file omnipy_examples-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: omnipy_examples-0.4.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79cd4ee4fe6c769915c16f5a76e38f410833e8a1fb4d378fbcc573be7f89eb3 |
|
MD5 | 164c4e6a84f0b2353e49eb40296e0e69 |
|
BLAKE2b-256 | 8b8d40b43c8a20c3c332a75d92f7262451fefccc525752d166d63df9c76cb644 |