No project description provided
Project description
DE Workflow
This is a small wrapper program around the drug-extraction-cli program.
It is effectively a convenience wrapper for us and our typical use-case.
Benefits over the standard CLI:
- Multi-column support (it expects two columns -- a primary and a secondary)
- Wide form data created automatically
- Wide form data attached to source data ready for analysis
- Automated report generation
- Use of either our/your custom search template with tags!
It can generate a nice report using datapane for some quick eye-ball analysis.
It uses data/drug_info.json
(link) as our template for custom search words with tags. This can be extended or edited where you can provide ANY custom search file you want as long as it matches our format. Alternatively you can enable --live
mode and just use ours 🙂.
Requirements
Installation
You can install this program with pipx:
pipx install de-workflow
You can then easily get help for the only command (execute) like so:
de-workflow execute --help
Which should look something like this:
Usage
To run this tool all you will need to know is:
- The name of your file
- Your ID column for linking
- Your Target column(s) to search in
You can then run the tool:
de-workflow execute ../cli/data/records.csv "Case Number" "Primary Cause" "Secondary Cause"
This will run the underlying drug extraction program so you MUST have the main CLI tool installed.
There are additional flags for reporting and custom file searching.
--report/--no-report
identifies whether or not to produce a datapane
report at the end. Suggested and default value is --report
.
--live/no-live
identifies whether or not you want you use our template.
If you do NOT want to use our template, you can disable live (--no-live
) but you then MUST provide a custom --search-file
for the program to use. This file should be in json
format and match the structure of our template so that the tool can work correctly.
Sample Output
Support
If you encounter any issues or need support please either contact @nanthony007 or open an issue.
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
See CONTRIBUTING.md for more details.
MIT License
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
Hashes for de_workflow-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 642dbb313f0f5a6dc4d824608432af126236de35f979ee0ac4fccfe765303e26 |
|
MD5 | a657a2e48b3a069a12fefbce578e4c9e |
|
BLAKE2b-256 | 9af92327cc7010091896493551e081470d5e132be901161d020b044c529d2462 |