Coder Social home page Coder Social logo

numerology's Introduction

Numerology

1. About

A simple multilanguage numerology tool to have fun with friends. The interpretations are not fully implemented yet but the mechanism to get them is fully operational. Currently, you can have the life path interpretation in French and English, depending on your OS language.

2. Installation

# Option 1: pip
pip install numerology

# Option 2: Download the numerology folder on GitHub and add it to your work folder.

3. How to use it

3.1. Get full numerology

# Import
from numerology import Pythagorean

# Birthdate format: yyyy-mm-dd
# Birthdate is optional to let you have a partial numerology if that information is missing.
my_numerology = PythagoreanNumerology("First name", "Last name", "Birthdate")

# Example:
his_numerology = Pythagorean("Barrack", "Obama", "1961-08-04")

You could chose to either get the key figures, to link it to your own interpretations, or get the available interpretations.

3.1. Get key figures only

from numerology import Pythagorean

num = Pythagorean(first_name="Barack", last_name="Obama", birthdate="1961-08-04", verbose=False)
print(num.key_figures)

The example above should give something like this:

{
    "first_name": "Barack",
    "last_name": "Obama",
    "birthdate": "1961-08-04",
    "life_path_number": 2,
    "life_path_number_alternative": 2,
    "hearth_desire_number": 1,
    "personality_number": 22,
    "destiny_number": 5,
    "expression_number": 5,
    "birthdate_day_num": 4,
    "birthdate_month_num": 8,
    "birthdate_year_num": 8,
    "birthdate_year_num_alternative": 7,
    "active_number": 9,
    "legacy_number": 5,
    "power_number": 7,
    "power_number_alternative": 7,
    "full_name_numbers": {
        "1": 4,
        "2": 3,
        "9": 1,
        "3": 1,
        "6": 1,
        "4": 1
    },
    "full_name_missing_numbers": [
        5,
        7,
        8
    ]
}

3.2. Get the available interpretations

from numerology import Pythagorean

num = Pythagorean(first_name="Barack", last_name="Obama", birthdate="1961-08-04", verbose=False)
print(num.interpretations)

The example above should give something like this:

{
    "first_name": "Barack",
    "last_name": "Obama",
    "birthdate": "1961-08-04",
    "life_path_number": {
        "name": "Life Path Number",
        "number": "2",
        "meaning": {
            "title": "Life of collaboration and harmony with others",
            "description": "This life path favors association and marriage. Affection and friendship are sought. It symbolizes a certain passivity and there is sometimes a tendency to live according to events. There are many twists and turns and success comes with time unless it comes unexpectedly with the help of others.\nRequirements: The qualities needed to successfully take on this life path are: diplomacy, patience and balance.\nChallenges: This path is difficult for those who have 2 as a missing digit, and the expression numbers 1, 5, 9, 11 and 22."
        }
    }
}

4. Future log

Features to implement:

  • Interpretations
  • Vedic Numerology implementation (original code by Andrii KRAVCHUK that will be adapted for consistency with the Pythagorean Numerology)

5. Special thanks

In the beginning, this code was a simple tool for my friends who were struggling with calculations on paper. I could not imagine it would have gone so far.

A special thanks to:

  • Stéphane Y. for the book 'ABC de la numérologie' by Jean-Daniel FERMIER which helped me understand the world of numerology
  • Andrii KRAVCHUK (@yakninja) for transferring his ownership of the PyPi repository to me. That makes the command pip install numerology possible for this code
  • Kévin YAUY, PhD. (@kyauy) for letting me see all the potential of Python
  • Jennifer GORWOOD, PhD. for helping for typing the interpretations in French
  • and all the contributors of this project

Have fun!

numerology's People

Contributors

dvwright avatar eguenou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

numerology's Issues

Pyinstaller : ModuleNotFoundError: No module named 'pythagorean'

Hi,

Even using "--hidden-import" with either "numerology" or "pythagorean" in my pyinstaller command, I go this error when I launch my .exe -

import numerology # PyInstaller PYZ
# pythagorean not found in PYZ
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "extract.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "numerology\__init__.py", line 11, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pythagorean'

Pythagorean import from numerology also give me error in PyCharm editor.
from numerology import Pythagorean
Cannot find reference 'Pythagorean' in '__init__.py'

No module named 'pythagorean' when import numerology

Hi @eguenou , I'm facing an error when testing numerology in my local. it seems the numerology init file can not access pythagorean package.

Versions:

pip 21.1.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
Python 3.9.6

Code:

from numerology import PythagoreanNumerology

Error:

ModuleNotFoundError: No module named 'pythagorean'
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-34674351218f> in <module>
----> 1 from numerology import PythagoreanNumerology

/usr/local/lib/python3.9/site-packages/numerology/__init__.py in <module>
      4 import sys
      5 
----> 6 from pythagorean.common import Functions as fct
      7 from pythagorean.numerology import Numerology as Pythagorean
      8 

ModuleNotFoundError: No module named 'pythagorean'

I haven't checked the codebase of your package, but if you comment this part you will see another error.

ModuleNotFoundError: No module named 'pythagorean'

Hi, I am experiencing import issues trying to use this package.

Steps to recreate:

$ pip install numerology

Collecting numerology
Downloading numerology-1.0-py3-none-any.whl (35 kB)
Installing collected packages: numerology
Successfully installed numerology-1.0

$ python3 test.py

Traceback (most recent call last):
File "test.py", line 1, in
from numerology import Pythagorean
File "/home/dwright/Dev/python/pdev/lib/python3.9/site-packages/numerology/init.py", line 6, in
from pythagorean.common import Functions as fct
ModuleNotFoundError: No module named 'pythagorean'

#######
test.py
#######
from numerology import PythagoreanNumerology
his_numerology = PythagoreanNumerology("Barrack", "Obama", "1961-08-04")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.