|
1 | 1 | # CDIPpy |
2 | 2 | A python library for navigating and accessing CDIP products. |
3 | 3 |
|
4 | | -## In this package |
5 | | -_List of functions, WIP_ |
6 | | -* data access |
7 | | -* |
8 | | - |
9 | | -## Installation |
10 | | -To install CDIPpy locally, you can either |
11 | | -1. clone the repository, navigate to the root directory, and run `pip install .` or |
12 | | -2. without cloning the repositorym, install from github: `pip install git+https://github.com/cdipsw/CDIPpy.git` |
13 | | - |
14 | | - |
15 | | -## Usage |
16 | | -_Directions for use, WIP_ |
17 | | - |
18 | | -## Development |
19 | | -To set up a development copy of CDIPpy, install the project form source using `uv`: |
20 | | -``` bash |
21 | | -pip install uv |
22 | | -uv venv |
23 | | -source activate .venv/bin/activate |
24 | | -uv pip install -e .[dev] |
25 | | -``` |
26 | | -This creates a local, virtual environment at `./.venv`, and installs a version of CDIPpy that is editable (`-e`), along with several additional dev dependencies (`[dev]`). |
27 | | - |
28 | | -### Testing |
29 | | -This project uses python's built in `unittest` package. To run all tests: |
30 | | -~~~bash |
31 | | -python -m unittest discover |
32 | | -~~~ |
33 | | -To run with coverage: |
34 | | -~~~bash |
35 | | -coverage run -m unittest discover |
36 | | -~~~ |
37 | | -To view the coverage report: |
38 | | -~~~bash |
39 | | -coverage report |
40 | | -~~~ |
41 | | - |
42 | | -### Contributing |
43 | | -Contributions are welcome and should be merged via pull request on the `main` branch from a forked repository. Before a PR can be merged, it needs to pass the following checks: |
44 | | - |
45 | | -* all tests passed |
46 | | -* coverage >= 90% |
47 | | -* passes `flake8` linter |
48 | | -* there must be at least one reviewer approval |
49 | | -* a CLA must be signed by the contributor, if this is their first commit |
50 | | - |
51 | | -If you do not wish you manually check the style for every commit, there is a pre-commit hook that can do it for you. After setting up CDIPpy for development, install the hook with: `pre-commit install`. The installed hook will auto-format the files in your commit with `black` and check for any remaining format errors with `flake8`. |
| 4 | +## Quick Start |
| 5 | +See the docs @ [https://cdipsw.github.io/CDIPpy/quickstart/](https://cdipsw.github.io/CDIPpy/quickstart/) |
0 commit comments