tssynth
Generate realistic synthetic time series data with customizable patterns, seasonality, and noise components. Perfect for testing time series algorithms, machine learning models, or generating sample datasets.
Features
✨ Flexible Generation: Create time series with various components:
- Linear, exponential, or custom trends
- Multiple seasonality patterns
- Configurable noise distributions
- Anomaly injection
🚀 Easy to Use: Simple, intuitive API built on numpy and pandas
import tssynth as ts
# Generate a time series with multiple components
data = ts.generate(
length=365, # One year of daily data
trend="exponential", # Exponential growth
seasonality=["weekly", "yearly"],
noise_type="gaussian",
noise_level=0.05
)
Installation
pip install tssynth
Documentation
For detailed usage examples and API reference, visit our documentation.
Quick Examples
# Generate a simple trend
basic_trend = ts.generate(length=100, trend="linear")
# Add seasonality and anomalies
complex_ts = ts.generate(
length=1000,
trend="exponential",
seasonality="monthly",
anomalies={"frequency": 0.01, "magnitude": 3.0}
)
# Export to pandas DataFrame
df = complex_ts.to_dataframe()
Development
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black .
isort .
License
MIT License - See LICENSE file for details.
Author
Will Judge (williamjudge94@gmail.com)
Release files for tssynth 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tssynth-0.2.2.tar.gz | 88.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tssynth-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.1 kB
Release files / tssynth-0.2.2.tar.gz
| Download URL | tssynth-0.2.2.tar.gz |
|---|---|
| Size | 88.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee8a581f7af0264f972eff59281ffb7e3802e78dc2b759efaa862ed31bed83eb
|
|
BLAKE2b-256 checksum How to use checksums |
375aebbecc7700b396d939606d88cc49ea858cc9abcc65cf6ea4ad2432235e00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tssynth-0.2.2-py3-none-any.whl
| Download URL | tssynth-0.2.2-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35bba817580b91b5bd55ae40ce00b1aaec799e93fbfd1ad2cc15b983ee604b0a
|
|
BLAKE2b-256 checksum How to use checksums |
9b5b3fde9b9ab24c3df6580d1557eee218907b2245cd9903f6c2d22967a0593d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|