airtrain 0.1.0__tar.gz → 0.1.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {airtrain-0.1.0 → airtrain-0.1.1}/PKG-INFO +2 -2
- {airtrain-0.1.0 → airtrain-0.1.1}/README.md +1 -1
- airtrain-0.1.1/airtrain/__init__.py +9 -0
- airtrain-0.1.1/airtrain/core/__init__.py +7 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain.egg-info/PKG-INFO +2 -2
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain.egg-info/SOURCES.txt +3 -0
- airtrain-0.1.1/airtrain.egg-info/top_level.txt +1 -0
- airtrain-0.1.1/scripts/bump_version.py +55 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/setup.py +17 -3
- airtrain-0.1.0/airtrain.egg-info/top_level.txt +0 -1
- {airtrain-0.1.0 → airtrain-0.1.1}/.flake8 +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.github/workflows/publish.yml +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.mypy.ini +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.pre-commit-config.yaml +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.vscode/extensions.json +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.vscode/launch.json +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/.vscode/settings.json +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/EXPERIMENTS/schema_exps/pydantic_schemas.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/__pycache__/credentials.cpython-310.pyc +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/__pycache__/schemas.cpython-310.pyc +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/__pycache__/skills.cpython-310.pyc +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/credentials.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/schemas.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain/core/skills.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain.egg-info/dependency_links.txt +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/airtrain.egg-info/requires.txt +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/creating-skills/image1.jpg +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/creating-skills/image2.jpg +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/creating-skills/openai_skills.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/creating-skills/openai_structured_skills.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/credentials_usage.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/schema_usage.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/examples/skill_usage.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/pyproject.toml +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/scripts/build.sh +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/scripts/publish.sh +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/services/firebase_service.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/services/openai_service.py +0 -0
- {airtrain-0.1.0 → airtrain-0.1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: airtrain
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A platform for building and deploying AI agents with structured skills
|
5
5
|
Home-page: https://github.com/rosaboyle/airtrain.dev
|
6
6
|
Author: Dheeraj Pai
|
@@ -95,7 +95,7 @@ creds.load_to_env()
|
|
95
95
|
|
96
96
|
## Documentation
|
97
97
|
|
98
|
-
For detailed documentation, visit [our documentation site](https://airtrain.
|
98
|
+
For detailed documentation, visit [our documentation site](https://docs.airtrain.dev/).
|
99
99
|
|
100
100
|
## Contributing
|
101
101
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"""Airtrain - A platform for building and deploying AI agents with structured skills"""
|
2
|
+
|
3
|
+
__version__ = "0.1.1"
|
4
|
+
|
5
|
+
from .core.skills import Skill
|
6
|
+
from .core.schemas import InputSchema, OutputSchema
|
7
|
+
from .core.credentials import BaseCredentials
|
8
|
+
|
9
|
+
__all__ = ["Skill", "InputSchema", "OutputSchema", "BaseCredentials"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: airtrain
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A platform for building and deploying AI agents with structured skills
|
5
5
|
Home-page: https://github.com/rosaboyle/airtrain.dev
|
6
6
|
Author: Dheeraj Pai
|
@@ -95,7 +95,7 @@ creds.load_to_env()
|
|
95
95
|
|
96
96
|
## Documentation
|
97
97
|
|
98
|
-
For detailed documentation, visit [our documentation site](https://airtrain.
|
98
|
+
For detailed documentation, visit [our documentation site](https://docs.airtrain.dev/).
|
99
99
|
|
100
100
|
## Contributing
|
101
101
|
|
@@ -9,11 +9,13 @@ setup.py
|
|
9
9
|
.vscode/launch.json
|
10
10
|
.vscode/settings.json
|
11
11
|
EXPERIMENTS/schema_exps/pydantic_schemas.py
|
12
|
+
airtrain/__init__.py
|
12
13
|
airtrain.egg-info/PKG-INFO
|
13
14
|
airtrain.egg-info/SOURCES.txt
|
14
15
|
airtrain.egg-info/dependency_links.txt
|
15
16
|
airtrain.egg-info/requires.txt
|
16
17
|
airtrain.egg-info/top_level.txt
|
18
|
+
airtrain/core/__init__.py
|
17
19
|
airtrain/core/credentials.py
|
18
20
|
airtrain/core/schemas.py
|
19
21
|
airtrain/core/skills.py
|
@@ -28,6 +30,7 @@ examples/creating-skills/image2.jpg
|
|
28
30
|
examples/creating-skills/openai_skills.py
|
29
31
|
examples/creating-skills/openai_structured_skills.py
|
30
32
|
scripts/build.sh
|
33
|
+
scripts/bump_version.py
|
31
34
|
scripts/publish.sh
|
32
35
|
services/firebase_service.py
|
33
36
|
services/openai_service.py
|
@@ -0,0 +1 @@
|
|
1
|
+
airtrain
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import os
|
2
|
+
import re
|
3
|
+
|
4
|
+
|
5
|
+
def read_version():
|
6
|
+
"""Read current version from __init__.py"""
|
7
|
+
init_path = os.path.join(
|
8
|
+
os.path.dirname(os.path.dirname(__file__)), "airtrain", "__init__.py"
|
9
|
+
)
|
10
|
+
with open(init_path, "r", encoding="utf-8") as f:
|
11
|
+
version_file = f.read()
|
12
|
+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
13
|
+
if version_match:
|
14
|
+
return version_match.group(1)
|
15
|
+
raise RuntimeError("Unable to find version string.")
|
16
|
+
|
17
|
+
|
18
|
+
def bump_patch_version(version_str):
|
19
|
+
"""Increment the patch version"""
|
20
|
+
major, minor, patch = map(int, version_str.split("."))
|
21
|
+
return f"{major}.{minor}.{patch + 1}"
|
22
|
+
|
23
|
+
|
24
|
+
def update_version(new_version):
|
25
|
+
"""Update version in __init__.py"""
|
26
|
+
init_path = os.path.join(
|
27
|
+
os.path.dirname(os.path.dirname(__file__)), "airtrain", "__init__.py"
|
28
|
+
)
|
29
|
+
with open(init_path, "r", encoding="utf-8") as f:
|
30
|
+
content = f.read()
|
31
|
+
|
32
|
+
new_content = re.sub(
|
33
|
+
r"^__version__ = ['\"]([^'\"]*)['\"]",
|
34
|
+
f'__version__ = "{new_version}"',
|
35
|
+
content,
|
36
|
+
flags=re.M,
|
37
|
+
)
|
38
|
+
|
39
|
+
with open(init_path, "w", encoding="utf-8") as f:
|
40
|
+
f.write(new_content)
|
41
|
+
|
42
|
+
|
43
|
+
def main():
|
44
|
+
try:
|
45
|
+
current_version = read_version()
|
46
|
+
new_version = bump_patch_version(current_version)
|
47
|
+
update_version(new_version)
|
48
|
+
print(f"Version bumped from {current_version} to {new_version}")
|
49
|
+
except Exception as e:
|
50
|
+
print(f"Error updating version: {str(e)}")
|
51
|
+
exit(1)
|
52
|
+
|
53
|
+
|
54
|
+
if __name__ == "__main__":
|
55
|
+
main()
|
@@ -1,18 +1,32 @@
|
|
1
|
-
from setuptools import setup, find_packages
|
1
|
+
from setuptools import setup, find_packages # type: ignore
|
2
|
+
import os
|
3
|
+
import re
|
4
|
+
|
5
|
+
|
6
|
+
# Read version from __init__.py
|
7
|
+
def get_version():
|
8
|
+
init_path = os.path.join(os.path.dirname(__file__), "airtrain", "__init__.py")
|
9
|
+
with open(init_path, "r", encoding="utf-8") as f:
|
10
|
+
version_file = f.read()
|
11
|
+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
12
|
+
if version_match:
|
13
|
+
return version_match.group(1)
|
14
|
+
raise RuntimeError("Unable to find version string.")
|
15
|
+
|
2
16
|
|
3
17
|
with open("README.md", "r", encoding="utf-8") as fh:
|
4
18
|
long_description = fh.read()
|
5
19
|
|
6
20
|
setup(
|
7
21
|
name="airtrain",
|
8
|
-
version=
|
22
|
+
version=get_version(),
|
9
23
|
author="Dheeraj Pai",
|
10
24
|
author_email="helloworldcmu@gmail.com",
|
11
25
|
description="A platform for building and deploying AI agents with structured skills",
|
12
26
|
long_description=long_description,
|
13
27
|
long_description_content_type="text/markdown",
|
14
28
|
url="https://github.com/rosaboyle/airtrain.dev",
|
15
|
-
packages=find_packages(),
|
29
|
+
packages=find_packages(include=["airtrain", "airtrain.*"]),
|
16
30
|
classifiers=[
|
17
31
|
"Development Status :: 3 - Alpha",
|
18
32
|
"Intended Audience :: Developers",
|
@@ -1 +0,0 @@
|
|
1
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|