# Python

## Install package in editable mode

From parent directory of package:

```bash
$ pip install -e <your package name>
```

## Updating and Publishing Packages to PyPi:

See [Packaging Python Projects (`python.org`)](https://packaging.python.org/tutorials/packaging-projects/)

1. Your python envrionment will require the following pacakges:

   ```
    python=3
    setuptools
    twine
   ```
2. Update the [semantic version](https://semver.org/) number in the package's `setup.py`.
3. From the same directory as `setup.py` build the new version:

   ```bash
    $ python setup.py bdist_wheel --universal
   ```
4. Upload the new version to [PyPi](http://pypi.org). (You'll be prompted to enter your username/password):

   ```bash
    $ twine upload dist/*
   ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atd-dts.gitbook.io/wiki/developer/python.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
