-
Notifications
You must be signed in to change notification settings - Fork 0
Using TaleSpire Encoding in Your Own Project
talespire-encoding is distributed as a normal Python package through PyPI talespire-encoding.
If you are building your own TaleSpire tools, applications, or pipelines, it is strongly recommended that you install the package dynamically rather than copying the source code directly into your project.
Using the published package has several advantages:
- Easier updates
- Cleaner dependency management
- Bug fixes and improvements automatically available
- Clear versioning and compatibility
- Avoids maintaining local modified copies
- Keeps projects smaller and easier to maintain
Instead of vendoring the library into your repository, depend on the published package like any other Python dependency.
Install the latest release:
pip install talespire-encodingInstall a specific version:
pip install talespire-encoding==1.2.3Upgrade to the latest release:
pip install --upgrade talespire-encodingRecommended for modern Python projects:
[project]
dependencies = [
"talespire-encoding>=1.2.3"
]Or pin to a specific tested version:
[project]
dependencies = [
"talespire-encoding==1.2.3"
]talespire-encoding>=1.2.3
Or:
talespire-encoding==1.2.3
The Python import package is ts_encoding.
Example:
from ts_encoding.slab import TSSlab
from ts_encoding.creature_bp import TSCreatureIf your application depends on specific functionality or behavior, it is recommended to pin the version you have tested against.
Example:
talespire-encoding==1.2.3
This ensures your users receive a known-compatible version.
Applications that prefer newer functionality can instead use version ranges:
talespire-encoding>=1.2,<2
Some applications (such as DCC tools, Houdini integrations, or standalone launchers) may wish to install the package automatically at runtime.
Example:
python -m pip install talespire-encoding==1.2.3For embedded Python environments, such as Houdini:
hython -m pip install talespire-encoding==1.2.3A custom install location can also be specified:
python -m pip install --target ./python_libs talespire-encoding==1.2.3This allows applications to manage their own isolated dependencies without requiring a system-wide install.
For contributors or developers working directly on the repository:
pip install -e .[dev]This installs the package in editable mode along with development dependencies such as pytest.
Issues, feature requests, and compatibility problems can be reported on the project repository: