gencalc 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.
- gencalc-1.0.0/LICENSE +5 -0
- gencalc-1.0.0/PKG-INFO +33 -0
- gencalc-1.0.0/README.md +10 -0
- gencalc-1.0.0/gencalc/__init__.py +7 -0
- gencalc-1.0.0/gencalc/gencalc.py +15 -0
- gencalc-1.0.0/gencalc.egg-info/PKG-INFO +33 -0
- gencalc-1.0.0/gencalc.egg-info/SOURCES.txt +9 -0
- gencalc-1.0.0/gencalc.egg-info/dependency_links.txt +1 -0
- gencalc-1.0.0/gencalc.egg-info/top_level.txt +1 -0
- gencalc-1.0.0/setup.cfg +4 -0
- gencalc-1.0.0/setup.py +20 -0
gencalc-1.0.0/LICENSE
ADDED
gencalc-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gencalc
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A Python library to calculate the start and end of any new or old generation.
|
|
5
|
+
Author: Niral Bhatt
|
|
6
|
+
Author-email: niralbhatt@hotmail.com
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# NovaCodon Gencalc
|
|
25
|
+
|
|
26
|
+
'gencalc' is a Python library for calculating the start and end year of any generation, by Niral Bhatt.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
To install, simply add the library to your Python project.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install gencalc
|
gencalc-1.0.0/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
def oldgen_start(p):
|
|
2
|
+
"""Returns the start year of an old generation (A�Z) based on its position p (A=1, B=2, ... Z=26)."""
|
|
3
|
+
print(1606 + 15*p)
|
|
4
|
+
|
|
5
|
+
def oldgen_last(p):
|
|
6
|
+
"""Returns the end year of an old generation (A�Z) based on its position p (A=1, B=2, ... Z=26)."""
|
|
7
|
+
print(1620 + 15*p)
|
|
8
|
+
|
|
9
|
+
def newgen_start(p):
|
|
10
|
+
"""Returns the start year of a new generation (Alpha�Omega) based on its position p (Alpha = 1, ... Omega=24)."""
|
|
11
|
+
print(1996 + 15*p)
|
|
12
|
+
|
|
13
|
+
def newgen_last(p):
|
|
14
|
+
"""Returns the end year of a new generation (Alpha�Omega) based on its position p (Alpha = 1, ... Omega=24)."""
|
|
15
|
+
print(2010 + 15*p)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gencalc
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A Python library to calculate the start and end of any new or old generation.
|
|
5
|
+
Author: Niral Bhatt
|
|
6
|
+
Author-email: niralbhatt@hotmail.com
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# NovaCodon Gencalc
|
|
25
|
+
|
|
26
|
+
'gencalc' is a Python library for calculating the start and end year of any generation, by Niral Bhatt.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
To install, simply add the library to your Python project.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install gencalc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gencalc
|
gencalc-1.0.0/setup.cfg
ADDED
gencalc-1.0.0/setup.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='gencalc',
|
|
5
|
+
version='1.0.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
install_requires=[], # No external dependencies
|
|
8
|
+
description='A Python library to calculate the start and end of any new or old generation.',
|
|
9
|
+
long_description=open('README.md').read(),
|
|
10
|
+
long_description_content_type='text/markdown',
|
|
11
|
+
author='Niral Bhatt',
|
|
12
|
+
author_email='niralbhatt@hotmail.com',
|
|
13
|
+
license='MIT',
|
|
14
|
+
classifiers=[
|
|
15
|
+
'Programming Language :: Python :: 3',
|
|
16
|
+
'License :: OSI Approved :: MIT License',
|
|
17
|
+
'Operating System :: OS Independent',
|
|
18
|
+
],
|
|
19
|
+
python_requires='>=3.6',
|
|
20
|
+
)
|