thoughtflow 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 James A. Rolfsen
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,17 @@
1
+ Metadata-Version: 2.1
2
+ Name: thoughtflow
3
+ Version: 0.0.1
4
+ Summary: Short Description
5
+ Home-page: https://github.com/jrolf/rolfdog
6
+ Author: James A. Rolfsen
7
+ Author-email: james@think.dev
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Natural Language :: English
12
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
13
+ License-File: LICENSE
14
+ Requires-Dist: numpy>=1.1.1
15
+ Requires-Dist: pandas>=0.1.1
16
+
17
+ Long Description
@@ -0,0 +1,60 @@
1
+ ```
2
+ # JTools: A Python Library for Data Manipulation
3
+
4
+ JTools is a Python library designed to simplify common data manipulation tasks. The library currently consists of two modules: `Sorter` and `Adder`. These modules provide easy-to-use functions for sorting and adding numeric data, respectively.
5
+
6
+ ## Installation
7
+
8
+ To install JTools, simply use pip:
9
+
10
+ ```bash
11
+ pip install jtools
12
+ ```
13
+
14
+ ## Modules
15
+
16
+ ### Sorter
17
+
18
+ The `Sorter` module offers functionalities for sorting arrays. It's built on top of NumPy, ensuring efficient sorting for large datasets.
19
+
20
+ #### Usage:
21
+
22
+ ```python
23
+ from jtools import Sorter
24
+
25
+ # Initialize the Sorter
26
+ s = Sorter()
27
+
28
+ # Sort an array
29
+ things = [5, 1, 4, 2, 3]
30
+ sorted_things = s.sort_things(things)
31
+ print(sorted_things)
32
+ ```
33
+
34
+ ### Adder
35
+
36
+ The `Adder` module provides a simple way to add two arrays. Like `Sorter`, it relies on NumPy for fast computations.
37
+
38
+ #### Usage:
39
+
40
+ ```python
41
+ from jtools import Adder
42
+
43
+ # Initialize the Adder
44
+ a = Adder()
45
+
46
+ # Add two arrays
47
+ things1 = [5, 1, 4, 2, 3]
48
+ things2 = [1, 2, 3, 4, 5]
49
+ summed_things = a.add_things(things1, things2)
50
+ print(summed_things)
51
+ ```
52
+
53
+ ## Contributing
54
+
55
+ Contributions to JTools are welcome! Please feel free to submit pull requests or open issues to discuss proposed changes or report bugs.
56
+
57
+ ## License
58
+
59
+ This project is licensed under the MIT License - see the LICENSE file for details.
60
+ ```
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,40 @@
1
+
2
+
3
+ from setuptools import setup, find_packages
4
+
5
+ setup(
6
+ # Basic package information:
7
+ name='thoughtflow',
8
+ version='0.0.1',
9
+ packages=find_packages(), # Automatically find packages in the directory
10
+
11
+ # Dependencies:
12
+ install_requires=[
13
+ 'numpy>=1.1.1',
14
+ 'pandas>=0.1.1',
15
+ ],
16
+
17
+ # Metadata for PyPI:
18
+ author ='James A. Rolfsen',
19
+ author_email ='james@think.dev',
20
+ description ='Short Description',
21
+ url ='https://github.com/jrolf/rolfdog',
22
+ long_description='Long Description',
23
+ #long_description=open('README.md').read(),
24
+ # If your README is in markdown:
25
+ #long_description_content_type='text/markdown',
26
+
27
+ # More classifiers: https://pypi.org/classifiers/
28
+ classifiers=[
29
+ 'Programming Language :: Python :: 3.12',
30
+ 'License :: OSI Approved :: MIT License', # Ensure this matches your LICENSE file
31
+ 'Operating System :: OS Independent',
32
+ 'Natural Language :: English',
33
+ 'Topic :: Software Development :: Libraries :: Python Modules',
34
+ ],
35
+ )
36
+
37
+
38
+
39
+
40
+
@@ -0,0 +1,7 @@
1
+
2
+ import numpy
3
+ import numpy as np
4
+ import pandas as pd
5
+
6
+ from .jtools1 import Sorter # Assuming you have a class named Sorter in jtools1.py
7
+ from .jtools2 import Adder # Assuming you have a class named Adder in jtools2.py
@@ -0,0 +1,25 @@
1
+
2
+ import numpy as np
3
+
4
+ class Sorter:
5
+ def __init__(self):
6
+ self.x = np.array([])
7
+ def sort_things(self,things):
8
+ idx = np.argsort(things)
9
+ return np.array(things)[idx]
10
+
11
+
12
+ Notes = '''
13
+
14
+ S = Sorter()
15
+ things1 = [5,1,4,2,3]
16
+ things2 = S.sort_things(things1)
17
+
18
+
19
+ '''
20
+
21
+
22
+
23
+
24
+
25
+
@@ -0,0 +1,27 @@
1
+
2
+ import numpy as np
3
+
4
+ class Adder:
5
+ def __init__(self):
6
+ self.x = np.array([])
7
+ def add_things(self,things1,things2):
8
+ a = np.array(things1)
9
+ b = np.array(things2)
10
+ return a+b
11
+
12
+
13
+ Notes = '''
14
+
15
+ things1 = [5,1,4,2,3]
16
+ things2 = [1,2,3,4,5]
17
+
18
+ A = Adder()
19
+ things3 = A.add_things(things1)
20
+
21
+ '''
22
+
23
+
24
+
25
+
26
+
27
+
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.1
2
+ Name: thoughtflow
3
+ Version: 0.0.1
4
+ Summary: Short Description
5
+ Home-page: https://github.com/jrolf/rolfdog
6
+ Author: James A. Rolfsen
7
+ Author-email: james@think.dev
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Natural Language :: English
12
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
13
+ License-File: LICENSE
14
+ Requires-Dist: numpy>=1.1.1
15
+ Requires-Dist: pandas>=0.1.1
16
+
17
+ Long Description
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ thoughtflow/__init__.py
5
+ thoughtflow/jtools1.py
6
+ thoughtflow/jtools2.py
7
+ thoughtflow.egg-info/PKG-INFO
8
+ thoughtflow.egg-info/SOURCES.txt
9
+ thoughtflow.egg-info/dependency_links.txt
10
+ thoughtflow.egg-info/requires.txt
11
+ thoughtflow.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ numpy>=1.1.1
2
+ pandas>=0.1.1
@@ -0,0 +1 @@
1
+ thoughtflow