Skip to content

OpenPTV/openptv-python

Repository files navigation

openptv-python

Python version of the OpenPTV library - this is a work in progress

How this is started

This work started from the https://github.com/OpenPTV/openptv/tree/pure_python branch. It's a long-standing idea to convert all the C code to Python and now it's possible with ChatGPT to save a lot of typing time.

This repo is created using a cookiecutter and the rest of the readme describes the way to work with this structure

Quick Start

>>> import openptv_python

Workflow for developers/contributors

For the best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:

conda create -n openptvpy -c conda-forge python=3.10
conda activate openptvpy

Before pushing to GitHub, run the following commands:

  1. Update conda environment: make conda-env-update
  2. Install this package: pip install -e .
  3. Sync with the latest template (optional): make template-update
  4. Run quality assurance checks: make qa
  5. Run tests: make unit-tests
  6. Run the static type checker: make type-check
  7. Build the documentation (see Sphinx tutorial): make docs-build

License

Copyright 2023, OpenPTV consortium.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.