tyba-client 0.4.3__tar.gz → 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tyba-client might be problematic. Click here for more details.

@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.1
2
+ Name: tyba-client
3
+ Version: 0.4.5
4
+ Summary: A Python API client for the Tyba Public API
5
+ License: MIT
6
+ Author: Tyler Nisonoff
7
+ Author-email: tyler@tybaenergy.com
8
+ Requires-Python: >=3.8,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Dist: dataclasses-json (>=0.6.4,<0.7.0)
17
+ Requires-Dist: generation-models (>=0,<1)
18
+ Requires-Dist: marshmallow (>=3.12.1,<4.0.0)
19
+ Requires-Dist: pandas (>=1.3.2,<2.0.0)
20
+ Requires-Dist: requests (>=2.25.1,<3.0.0)
21
+ Requires-Dist: structlog (>=24.1.0,<25.0.0)
22
+ Requires-Dist: tyba-financial-model (>=0,<1)
23
+ Description-Content-Type: text/markdown
24
+
25
+ <h1 align="center">
26
+ <img src="https://cdn.prod.website-files.com/669594441bac4d6528273301/669594441bac4d6528273329_Group%20180.svg" alt="TYBA" width="300">
27
+ </h1><br>
28
+
29
+
30
+ Python client to Tyba's project simulation API.
31
+
32
+ __Documentation:__ https://docs.tybaenergy.com/api
33
+
@@ -0,0 +1,8 @@
1
+ <h1 align="center">
2
+ <img src="https://cdn.prod.website-files.com/669594441bac4d6528273301/669594441bac4d6528273329_Group%20180.svg" alt="TYBA" width="300">
3
+ </h1><br>
4
+
5
+
6
+ Python client to Tyba's project simulation API.
7
+
8
+ __Documentation:__ https://docs.tybaenergy.com/api
@@ -1,10 +1,10 @@
1
1
  [tool.poetry]
2
2
  name = "tyba-client"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "A Python API client for the Tyba Public API"
5
5
  authors = ["Tyler Nisonoff <tyler@tybaenergy.com>"]
6
6
  license = "MIT"
7
- readme = "README.md"
7
+ readme = "PYPI_README.md"
8
8
  include = [
9
9
  "LICENSE",
10
10
  ]
@@ -6,10 +6,16 @@ import pandas as pd
6
6
  import typing as t
7
7
  from .io import read_pvsyst_file
8
8
  from .solar_resource import psm_column_map
9
+ from warnings import warn
9
10
 
10
11
  from tyba_client.utils import string_enum
11
12
 
12
13
 
14
+ warn("""tyba_client.models is deprecated in favor of using generation_models. Tyba will cease to support
15
+ tyba_client.models come 1/1/2025. See https://docs.tybaenergy.com/api/index.html or reach out to us for
16
+ help migrating.""", FutureWarning)
17
+
18
+
13
19
  class ValidationError(ValueError):
14
20
  pass
15
21
 
@@ -1,58 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: tyba-client
3
- Version: 0.4.3
4
- Summary: A Python API client for the Tyba Public API
5
- License: MIT
6
- Author: Tyler Nisonoff
7
- Author-email: tyler@tybaenergy.com
8
- Requires-Python: >=3.8,<4.0
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Requires-Dist: dataclasses-json (>=0.6.4,<0.7.0)
17
- Requires-Dist: generation-models (>=0,<1)
18
- Requires-Dist: marshmallow (>=3.12.1,<4.0.0)
19
- Requires-Dist: pandas (>=1.3.2,<2.0.0)
20
- Requires-Dist: requests (>=2.25.1,<3.0.0)
21
- Requires-Dist: structlog (>=24.1.0,<25.0.0)
22
- Requires-Dist: tyba-financial-model (>=0,<1)
23
- Description-Content-Type: text/markdown
24
-
25
- # Tyba API Client
26
-
27
- ## Examples
28
- For examples see [https://github.com/Tyba-Energy/tyba-client-notebooks](https://github.com/Tyba-Energy/tyba-client-notebooks).
29
- The script examples in tyba-python-client/examples will be deprecated eventually.
30
-
31
- ## Development
32
- ### Docs
33
- We use [`sphinx`](https://github.com/sphinx-doc/sphinx) to manage the documentation for the client.
34
- Source .rst files can be found in docs/source. We use the
35
- [`intersphinx`](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#) extension to manage links
36
- between the client docs and the docs of [`generation_models`](https://github.com/Tyba-Energy/generation/) (the model
37
- schema for the client). Make sure you understand how these links are defined based on the `intersphinx_mapping`
38
- variable in docs/source/conf.py to avoid any gotchas.
39
-
40
- To generate/update documentation for the Tyba client, `cd` into the docs directory and run the makefile that generates
41
- the HTML documentation
42
- ```bash
43
- # Assuming you are already in the tyba-python-client directory
44
- $ cd docs
45
- $ poetry run make html
46
- ```
47
- The HTML documentation can be found in docs/build/html.
48
-
49
- Once it's been reviewed, this HTML documentation needs to be uploaded to s3, so it
50
- can be served at [https://docs.tybaenergy.com/api/](https://docs.tybaenergy.com/api/). We have a python script to do
51
- this
52
- ```bash
53
- poetry run python upload_to_s3.py
54
- ```
55
-
56
-
57
-
58
-
@@ -1,33 +0,0 @@
1
- # Tyba API Client
2
-
3
- ## Examples
4
- For examples see [https://github.com/Tyba-Energy/tyba-client-notebooks](https://github.com/Tyba-Energy/tyba-client-notebooks).
5
- The script examples in tyba-python-client/examples will be deprecated eventually.
6
-
7
- ## Development
8
- ### Docs
9
- We use [`sphinx`](https://github.com/sphinx-doc/sphinx) to manage the documentation for the client.
10
- Source .rst files can be found in docs/source. We use the
11
- [`intersphinx`](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#) extension to manage links
12
- between the client docs and the docs of [`generation_models`](https://github.com/Tyba-Energy/generation/) (the model
13
- schema for the client). Make sure you understand how these links are defined based on the `intersphinx_mapping`
14
- variable in docs/source/conf.py to avoid any gotchas.
15
-
16
- To generate/update documentation for the Tyba client, `cd` into the docs directory and run the makefile that generates
17
- the HTML documentation
18
- ```bash
19
- # Assuming you are already in the tyba-python-client directory
20
- $ cd docs
21
- $ poetry run make html
22
- ```
23
- The HTML documentation can be found in docs/build/html.
24
-
25
- Once it's been reviewed, this HTML documentation needs to be uploaded to s3, so it
26
- can be served at [https://docs.tybaenergy.com/api/](https://docs.tybaenergy.com/api/). We have a python script to do
27
- this
28
- ```bash
29
- poetry run python upload_to_s3.py
30
- ```
31
-
32
-
33
-
File without changes