attachments 0.0.1__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.
- attachments-0.0.1/LICENSE +21 -0
- attachments-0.0.1/PKG-INFO +35 -0
- attachments-0.0.1/README.md +20 -0
- attachments-0.0.1/pyproject.toml +22 -0
- attachments-0.0.1/setup.cfg +4 -0
- attachments-0.0.1/src/attachments/__init__.py +8 -0
- attachments-0.0.1/src/attachments.egg-info/PKG-INFO +35 -0
- attachments-0.0.1/src/attachments.egg-info/SOURCES.txt +9 -0
- attachments-0.0.1/src/attachments.egg-info/dependency_links.txt +1 -0
- attachments-0.0.1/src/attachments.egg-info/top_level.txt +1 -0
- attachments-0.0.1/tests/test_placeholder.py +19 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Maxime Rivest
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: attachments
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A basic tool for handling attachments.
|
|
5
|
+
Author-email: Maxime Rivest <mrive052@gmail.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/yourusername/basic_attachments_tool
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/yourusername/basic_attachments_tool/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# Attachments
|
|
17
|
+
|
|
18
|
+
A basic Python library for handling version file types and providing them to llms as a mixt of images and text.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install attachments
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from attachments import Attachments
|
|
30
|
+
|
|
31
|
+
attachments = Attachments("path/to/attachments.pptx", "path/to/attachments.pdf")
|
|
32
|
+
|
|
33
|
+
attachments.render()
|
|
34
|
+
|
|
35
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Attachments
|
|
2
|
+
|
|
3
|
+
A basic Python library for handling version file types and providing them to llms as a mixt of images and text.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install attachments
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from attachments import Attachments
|
|
15
|
+
|
|
16
|
+
attachments = Attachments("path/to/attachments.pptx", "path/to/attachments.pdf")
|
|
17
|
+
|
|
18
|
+
attachments.render()
|
|
19
|
+
|
|
20
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "attachments"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Maxime Rivest", email="mrive052@gmail.com" },
|
|
10
|
+
]
|
|
11
|
+
description = "A basic tool for handling attachments."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.7"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
"Homepage" = "https://github.com/yourusername/basic_attachments_tool"
|
|
22
|
+
"Bug Tracker" = "https://github.com/yourusername/basic_attachments_tool/issues"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: attachments
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A basic tool for handling attachments.
|
|
5
|
+
Author-email: Maxime Rivest <mrive052@gmail.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/yourusername/basic_attachments_tool
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/yourusername/basic_attachments_tool/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# Attachments
|
|
17
|
+
|
|
18
|
+
A basic Python library for handling version file types and providing them to llms as a mixt of images and text.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install attachments
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from attachments import Attachments
|
|
30
|
+
|
|
31
|
+
attachments = Attachments("path/to/attachments.pptx", "path/to/attachments.pdf")
|
|
32
|
+
|
|
33
|
+
attachments.render()
|
|
34
|
+
|
|
35
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
attachments
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# tests/test_placeholder.py
|
|
2
|
+
|
|
3
|
+
import unittest
|
|
4
|
+
|
|
5
|
+
# Conditional import for your library's main module
|
|
6
|
+
# This structure helps if you run tests from the root directory or within the tests directory.
|
|
7
|
+
try:
|
|
8
|
+
from src import attachments
|
|
9
|
+
except ImportError:
|
|
10
|
+
# This allows running tests when the package is installed (e.g., in a virtual environment)
|
|
11
|
+
import attachments
|
|
12
|
+
|
|
13
|
+
class TestAttachments(unittest.TestCase):
|
|
14
|
+
|
|
15
|
+
def test_hello_function(self):
|
|
16
|
+
self.assertEqual(attachments.hello(), "Hello from attachments!")
|
|
17
|
+
|
|
18
|
+
if __name__ == '__main__':
|
|
19
|
+
unittest.main()
|