...
This commit is contained in:
@@ -5,8 +5,62 @@ Summary: A Python library for HeroCode
|
||||
Author-email: Kilo Code <kilo.code@example.com>
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/markdown
|
||||
Requires-Dist: peewee
|
||||
|
||||
# herolib_python
|
||||
|
||||
see also ~/code/git.ourworld.tf/tfgrid_research/tfdev
|
||||
has some usefull stuff as well
|
||||
|
||||
## Installation
|
||||
|
||||
You can install `herolib` directly from the Git repository using `uv pip` (or `pip`):
|
||||
|
||||
```bash
|
||||
uv pip install git+https://git.ourworld.tf/herocode/herolib_python.git
|
||||
```
|
||||
|
||||
To install in editable mode for development:
|
||||
|
||||
```bash
|
||||
uv pip install -e git+https://git.ourworld.tf/herocode/herolib_python.git#egg=herolib
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Once installed, you can import modules from the `herolib` package:
|
||||
|
||||
```python
|
||||
import herolib.core.loghandler.mylogging
|
||||
# Or import specific functions/classes
|
||||
from herolib.core.loghandler.mylogging import MyLogger
|
||||
```
|
||||
|
||||
## Version Control
|
||||
|
||||
This library follows standard Git version control practices. Releases can be managed by tagging specific commits in the Git repository. Users installing directly from the Git URL can specify a particular branch, tag, or commit hash to get a specific version. For example:
|
||||
|
||||
```bash
|
||||
# Install from a specific branch
|
||||
uv pip install git+https://git.ourworld.tf/herocode/herolib_python.git@main
|
||||
|
||||
# Install from a specific tag (e.g., v0.1.0)
|
||||
uv pip install git+https://git.ourworld.tf/herocode/herolib_python.git@v0.1.0
|
||||
|
||||
# Install from a specific commit hash
|
||||
uv pip install git+https://git.ourworld.tf/herocode/herolib_python.git@<commit_hash>
|
||||
```
|
||||
|
||||
## Adding as a Dependency in `pyproject.toml`
|
||||
|
||||
To include `herolib` as a dependency in another Python project that uses `pyproject.toml`, you can add it to the `dependencies` section of your project's `pyproject.toml` file. This is particularly useful for development or when you need to pin to a specific version or branch.
|
||||
|
||||
Example `pyproject.toml` for another project:
|
||||
|
||||
```toml
|
||||
[project]
|
||||
name = "my-other-project"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"herolib @ git+https://git.ourworld.tf/herocode/herolib_python.git",
|
||||
]
|
||||
|
@@ -1,78 +1,79 @@
|
||||
README.md
|
||||
pyproject.toml
|
||||
herolib/__init__.py
|
||||
herolib.egg-info/PKG-INFO
|
||||
herolib.egg-info/SOURCES.txt
|
||||
herolib.egg-info/dependency_links.txt
|
||||
herolib.egg-info/requires.txt
|
||||
herolib.egg-info/top_level.txt
|
||||
lib/__init__.py
|
||||
lib/clients/__init__.py
|
||||
lib/clients/assemblyai/__init__.py
|
||||
lib/clients/assemblyai/client.py
|
||||
lib/clients/stellar/__init__.py
|
||||
lib/clients/stellar/horizon.py
|
||||
lib/clients/stellar/model.py
|
||||
lib/clients/stellar/testnet.py
|
||||
lib/clients/telegram/__init__.py
|
||||
lib/clients/telegram/bot.py
|
||||
lib/clients/telegram/bot_audio.py
|
||||
lib/clients/telegram/bot_text.py
|
||||
lib/clients/telegram/errorqueue.py
|
||||
lib/clients/vimeo/__init__.py
|
||||
lib/clients/vimeo/client.py
|
||||
lib/clients/vimeo/model_video.py
|
||||
lib/clients/whisper/__init__.py
|
||||
lib/clients/whisper/convert.py
|
||||
lib/clients/whisper/whisper.py
|
||||
lib/clients/wireless/__init__.py
|
||||
lib/clients/wireless/wigle_net.py
|
||||
lib/core/__init__.py
|
||||
lib/core/heroscript/__init__.py
|
||||
lib/core/heroscript/heroaction.py
|
||||
lib/core/heroscript/heroscripts.py
|
||||
lib/core/heroscript/mixin.py
|
||||
lib/core/heroscript/tools.py
|
||||
lib/core/heroscript/examples/__init__.py
|
||||
lib/core/heroscript/examples/heroscript_example.py
|
||||
lib/core/heroscript/examples/heroscript_example2.py
|
||||
lib/core/heroscript/examples/wiki/__init__.py
|
||||
lib/core/heroscript/examples/wiki/sub/__init__.py
|
||||
lib/core/logger/__init__.py
|
||||
lib/core/logger/factory.py
|
||||
lib/core/logger/log.py
|
||||
lib/core/logger/log_test.py
|
||||
lib/core/logger/model.py
|
||||
lib/core/logger/search.py
|
||||
lib/core/loghandler/__init__.py
|
||||
lib/core/loghandler/mylogging.py
|
||||
lib/core/pathlib/__init__.py
|
||||
lib/core/pathlib/pathlib.py
|
||||
lib/core/texttools/__init__.py
|
||||
lib/core/texttools/texttools.py
|
||||
lib/crypt/__init__.py
|
||||
lib/crypt/box/__init__.py
|
||||
lib/crypt/box/box.py
|
||||
lib/crypt/box/box_api.py
|
||||
lib/data/__init__.py
|
||||
lib/data/ourtime/__init__.py
|
||||
lib/data/ourtime/ourtime.py
|
||||
lib/downloader/__init__.py
|
||||
lib/downloader/scrape_dynamic/dynamic_crawl.py
|
||||
lib/downloader/scrape_scapegraph/main.py
|
||||
lib/downloader/scrape_scapegraph/scrape.py
|
||||
lib/downloader/scrape_scapegraph/scrape_md.py
|
||||
lib/downloader/scrape_scapegraph/scrape_search.py
|
||||
lib/downloader/scrape_scapegraph/scrape_with_local_llm.py
|
||||
lib/downloader/scrape_scapegraph/scrape_with_local_llm_search.py
|
||||
lib/tools/__init__.py
|
||||
lib/tools/extensions.py
|
||||
lib/tools/gitscanner.py
|
||||
lib/tools/logger.py
|
||||
lib/tools/md5.py
|
||||
lib/tools/ourtime.py
|
||||
lib/tools/pathtools.py
|
||||
lib/tools/texttools.py
|
||||
lib/web/__init__.py
|
||||
lib/web/doctools/__init__.py
|
||||
lib/web/doctools/html_replacer.py
|
||||
lib/web/doctools/md_replacer.py
|
||||
lib/web/doctools/processor.py
|
||||
herolib/clients/__init__.py
|
||||
herolib/clients/assemblyai/__init__.py
|
||||
herolib/clients/assemblyai/client.py
|
||||
herolib/clients/stellar/__init__.py
|
||||
herolib/clients/stellar/horizon.py
|
||||
herolib/clients/stellar/model.py
|
||||
herolib/clients/stellar/testnet.py
|
||||
herolib/clients/telegram/__init__.py
|
||||
herolib/clients/telegram/bot.py
|
||||
herolib/clients/telegram/bot_audio.py
|
||||
herolib/clients/telegram/bot_text.py
|
||||
herolib/clients/telegram/errorqueue.py
|
||||
herolib/clients/vimeo/__init__.py
|
||||
herolib/clients/vimeo/client.py
|
||||
herolib/clients/vimeo/model_video.py
|
||||
herolib/clients/whisper/__init__.py
|
||||
herolib/clients/whisper/convert.py
|
||||
herolib/clients/whisper/whisper.py
|
||||
herolib/clients/wireless/__init__.py
|
||||
herolib/clients/wireless/wigle_net.py
|
||||
herolib/core/__init__.py
|
||||
herolib/core/heroscript/__init__.py
|
||||
herolib/core/heroscript/heroaction.py
|
||||
herolib/core/heroscript/heroscripts.py
|
||||
herolib/core/heroscript/mixin.py
|
||||
herolib/core/heroscript/tools.py
|
||||
herolib/core/heroscript/examples/__init__.py
|
||||
herolib/core/heroscript/examples/heroscript_example.py
|
||||
herolib/core/heroscript/examples/heroscript_example2.py
|
||||
herolib/core/heroscript/examples/wiki/__init__.py
|
||||
herolib/core/heroscript/examples/wiki/sub/__init__.py
|
||||
herolib/core/logger/__init__.py
|
||||
herolib/core/logger/factory.py
|
||||
herolib/core/logger/log.py
|
||||
herolib/core/logger/log_test.py
|
||||
herolib/core/logger/model.py
|
||||
herolib/core/logger/search.py
|
||||
herolib/core/loghandler/__init__.py
|
||||
herolib/core/loghandler/mylogging.py
|
||||
herolib/core/pathlib/__init__.py
|
||||
herolib/core/pathlib/pathlib.py
|
||||
herolib/core/texttools/__init__.py
|
||||
herolib/core/texttools/texttools.py
|
||||
herolib/crypt/__init__.py
|
||||
herolib/crypt/box/__init__.py
|
||||
herolib/crypt/box/box.py
|
||||
herolib/crypt/box/box_api.py
|
||||
herolib/data/__init__.py
|
||||
herolib/data/ourtime/__init__.py
|
||||
herolib/data/ourtime/ourtime.py
|
||||
herolib/downloader/__init__.py
|
||||
herolib/downloader/scrape_dynamic/dynamic_crawl.py
|
||||
herolib/downloader/scrape_scapegraph/main.py
|
||||
herolib/downloader/scrape_scapegraph/scrape.py
|
||||
herolib/downloader/scrape_scapegraph/scrape_md.py
|
||||
herolib/downloader/scrape_scapegraph/scrape_search.py
|
||||
herolib/downloader/scrape_scapegraph/scrape_with_local_llm.py
|
||||
herolib/downloader/scrape_scapegraph/scrape_with_local_llm_search.py
|
||||
herolib/tools/__init__.py
|
||||
herolib/tools/extensions.py
|
||||
herolib/tools/gitscanner.py
|
||||
herolib/tools/logger.py
|
||||
herolib/tools/md5.py
|
||||
herolib/tools/ourtime.py
|
||||
herolib/tools/pathtools.py
|
||||
herolib/tools/texttools.py
|
||||
herolib/web/__init__.py
|
||||
herolib/web/doctools/__init__.py
|
||||
herolib/web/doctools/html_replacer.py
|
||||
herolib/web/doctools/md_replacer.py
|
||||
herolib/web/doctools/processor.py
|
1
herolib.egg-info/requires.txt
Normal file
1
herolib.egg-info/requires.txt
Normal file
@@ -0,0 +1 @@
|
||||
peewee
|
@@ -1 +1 @@
|
||||
lib
|
||||
herolib
|
||||
|
Reference in New Issue
Block a user