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 ADDED
@@ -0,0 +1,5 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015-2025 Niral Bhatt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy...
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
@@ -0,0 +1,10 @@
1
+ # NovaCodon Gencalc
2
+
3
+ 'gencalc' is a Python library for calculating the start and end year of any generation, by Niral Bhatt.
4
+
5
+ ## Installation
6
+
7
+ To install, simply add the library to your Python project.
8
+
9
+ ```bash
10
+ pip install gencalc
@@ -0,0 +1,7 @@
1
+ from .gencalc import oldgen_start, oldgen_last, newgen_start, newgen_last
2
+
3
+ __version__ = "1.0.0"
4
+ __author__ = "Niral Bhatt"
5
+ __license__ = "MIT"
6
+
7
+ __all__ = ["oldgen_start", "oldgen_last", "newgen_start", "newgen_last"]
@@ -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,9 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ gencalc/__init__.py
5
+ gencalc/gencalc.py
6
+ gencalc.egg-info/PKG-INFO
7
+ gencalc.egg-info/SOURCES.txt
8
+ gencalc.egg-info/dependency_links.txt
9
+ gencalc.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ gencalc
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
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
+ )