encypher-ai 1.0.0__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.
Files changed (36) hide show
  1. encypher_ai-1.0.0/CODE_OF_CONDUCT.md +86 -0
  2. encypher_ai-1.0.0/CONTRIBUTING.md +139 -0
  3. encypher_ai-1.0.0/LICENSE.md +616 -0
  4. encypher_ai-1.0.0/MANIFEST.in +16 -0
  5. encypher_ai-1.0.0/PKG-INFO +335 -0
  6. encypher_ai-1.0.0/README.md +304 -0
  7. encypher_ai-1.0.0/encypher/__init__.py +13 -0
  8. encypher_ai-1.0.0/encypher/config/__init__.py +7 -0
  9. encypher_ai-1.0.0/encypher/config/settings.py +180 -0
  10. encypher_ai-1.0.0/encypher/core/__init__.py +8 -0
  11. encypher_ai-1.0.0/encypher/core/metadata_encoder.py +240 -0
  12. encypher_ai-1.0.0/encypher/core/unicode_metadata.py +306 -0
  13. encypher_ai-1.0.0/encypher/examples/__init__.py +12 -0
  14. encypher_ai-1.0.0/encypher/examples/cli_example.py +337 -0
  15. encypher_ai-1.0.0/encypher/examples/fastapi_example.py +201 -0
  16. encypher_ai-1.0.0/encypher/examples/litellm_integration.py +309 -0
  17. encypher_ai-1.0.0/encypher/examples/youtube_demo.py +603 -0
  18. encypher_ai-1.0.0/encypher/streaming/__init__.py +7 -0
  19. encypher_ai-1.0.0/encypher/streaming/handlers.py +273 -0
  20. encypher_ai-1.0.0/encypher/utils/__init__.py +7 -0
  21. encypher_ai-1.0.0/encypher_ai.egg-info/PKG-INFO +335 -0
  22. encypher_ai-1.0.0/encypher_ai.egg-info/SOURCES.txt +34 -0
  23. encypher_ai-1.0.0/encypher_ai.egg-info/dependency_links.txt +1 -0
  24. encypher_ai-1.0.0/encypher_ai.egg-info/requires.txt +14 -0
  25. encypher_ai-1.0.0/encypher_ai.egg-info/top_level.txt +1 -0
  26. encypher_ai-1.0.0/pyproject.toml +80 -0
  27. encypher_ai-1.0.0/pytest.ini +6 -0
  28. encypher_ai-1.0.0/setup.cfg +4 -0
  29. encypher_ai-1.0.0/tests/__init__.py +3 -0
  30. encypher_ai-1.0.0/tests/integration/__init__.py +1 -0
  31. encypher_ai-1.0.0/tests/integration/test_litellm_integration.py +183 -0
  32. encypher_ai-1.0.0/tests/integration/test_llm_outputs.py +272 -0
  33. encypher_ai-1.0.0/tests/test_metadata_encoder.py +130 -0
  34. encypher_ai-1.0.0/tests/test_settings.py +143 -0
  35. encypher_ai-1.0.0/tests/test_streaming_handler.py +207 -0
  36. encypher_ai-1.0.0/tests/test_unicode_metadata.py +148 -0
@@ -0,0 +1,86 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in the EncypherAI community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at:
40
+
41
+ **Email:** conduct@encypherai.com
42
+
43
+ All complaints will be reviewed and investigated promptly and fairly.
44
+
45
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
46
+
47
+ ## Enforcement Guidelines
48
+
49
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
50
+
51
+ ### 1. Correction
52
+
53
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
54
+
55
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
56
+
57
+ ### 2. Warning
58
+
59
+ **Community Impact**: A violation through a single incident or series of actions.
60
+
61
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
62
+
63
+ ### 3. Temporary Ban
64
+
65
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
66
+
67
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
68
+
69
+ ### 4. Permanent Ban
70
+
71
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
72
+
73
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
74
+
75
+ ## Attribution
76
+
77
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
78
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
79
+
80
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
81
+
82
+ [homepage]: https://www.contributor-covenant.org
83
+
84
+ For answers to common questions about this code of conduct, see the FAQ at
85
+ https://www.contributor-covenant.org/faq. Translations are available at
86
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,139 @@
1
+ # Contributing to EncypherAI Core
2
+
3
+ Thank you for your interest in contributing to EncypherAI Core! This document provides guidelines and instructions for contributing to this project.
4
+
5
+ ## Code of Conduct
6
+
7
+ By participating in this project, you agree to abide by our Code of Conduct. Please be respectful and considerate of others.
8
+
9
+ ## How to Contribute
10
+
11
+ ### Reporting Bugs
12
+
13
+ If you find a bug, please create an issue with the following information:
14
+
15
+ 1. A clear, descriptive title
16
+ 2. A detailed description of the issue
17
+ 3. Steps to reproduce the bug
18
+ 4. Expected behavior
19
+ 5. Actual behavior
20
+ 6. Any relevant logs or screenshots
21
+ 7. Your environment (OS, Python version, package version)
22
+
23
+ ### Suggesting Enhancements
24
+
25
+ We welcome suggestions for enhancements! Please create an issue with:
26
+
27
+ 1. A clear, descriptive title
28
+ 2. A detailed description of the enhancement
29
+ 3. The motivation for the enhancement
30
+ 4. Any examples or use cases
31
+
32
+ ### Pull Requests
33
+
34
+ 1. Fork the repository
35
+ 2. Create a new branch for your feature or bugfix
36
+ 3. Make your changes
37
+ 4. Add or update tests as necessary
38
+ 5. Update documentation as necessary
39
+ 6. Submit a pull request
40
+
41
+ #### Pull Request Guidelines
42
+
43
+ - Follow the existing code style
44
+ - Include tests for new features or bug fixes
45
+ - Update documentation for any changes
46
+ - Keep pull requests focused on a single change
47
+ - Reference any related issues in your PR description
48
+
49
+ ## Development Setup
50
+
51
+ 1. Clone the repository:
52
+ ```bash
53
+ git clone https://github.com/yourusername/encypher-ai.git
54
+ cd encypher-ai
55
+ ```
56
+
57
+ 2. Create a virtual environment:
58
+ ```bash
59
+ python -m venv venv
60
+ source venv/bin/activate # On Windows: venv\Scripts\activate
61
+ ```
62
+
63
+ 3. Install development dependencies:
64
+ ```bash
65
+ uv pip install -e ".[dev]"
66
+ ```
67
+
68
+ 4. Set up pre-commit hooks:
69
+ ```bash
70
+ pre-commit install
71
+ ```
72
+
73
+ 5. Run tests:
74
+ ```bash
75
+ pytest
76
+ ```
77
+
78
+ ## Code Style
79
+
80
+ We follow PEP 8 style guidelines with Black as our code formatter. All code must pass Black formatting checks before being merged.
81
+
82
+ ### Automated Formatting with Pre-commit
83
+
84
+ We use pre-commit hooks to automatically format code and check for issues before committing. The hooks will:
85
+
86
+ 1. Format code with Black (including Jupyter notebooks)
87
+ 2. Sort imports with isort
88
+ 3. Check for common issues with flake8 and ruff
89
+ 4. Perform type checking with mypy
90
+
91
+ After installing the pre-commit hooks (step 4 in Development Setup), they will run automatically on each commit.
92
+
93
+ ### Manual Code Formatting
94
+
95
+ You can also run the formatting tools manually:
96
+
97
+ ```bash
98
+ # Format all Python files
99
+ black encypher
100
+
101
+ # Format Python files including Jupyter notebooks
102
+ black --jupyter encypher
103
+
104
+ # Sort imports
105
+ isort encypher
106
+
107
+ # Run all pre-commit hooks on all files
108
+ pre-commit run --all-files
109
+ ```
110
+
111
+ ## Testing
112
+
113
+ Please write tests for any new features or bug fixes. We use pytest for testing.
114
+
115
+ ```bash
116
+ # Run all tests
117
+ pytest
118
+
119
+ # Run tests with coverage
120
+ pytest --cov=encypher
121
+ ```
122
+
123
+ ## Documentation
124
+
125
+ Please update documentation for any changes. We use docstrings for function and class documentation.
126
+
127
+ ## Versioning
128
+
129
+ We use [Semantic Versioning](https://semver.org/). Please ensure that your changes are compatible with the versioning scheme.
130
+
131
+ ## License
132
+
133
+ By contributing to this project, you agree that your contributions will be licensed under the project's license.
134
+
135
+ ## Questions?
136
+
137
+ If you have any questions, please feel free to create an issue or contact the maintainers.
138
+
139
+ Thank you for your contributions!