Skip to main content

Predicting your life with the Book of Changes

Project description

<div class="show-content"><p>iching is a packge developed by Cheng-Jun Wang. It employs the method of Shicao prediction to reproce the prediction of I Ching--the Book of Exchanges. The I Ching ([î tɕíŋ]; Chinese: 易經; pinyin: Yìjīng), also known as the Classic of Changes or Book of Changes in English, is an ancient divination text and the oldest of the Chinese classics.</p>
<p></p><div class="image-package">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Yarrow_stalks_for_I_Ching.JPG/440px-Yarrow_stalks_for_I_Ching.JPG"><br><div class="image-caption"></div>
</div>
<p>The Zhou yi provided a guide to cleromancy that used the stalks of the yarrow plant, but it is not known how the yarrow stalks became numbers, or how specific lines were chosen from the line readings.[22] In the hexagrams, broken lines were used as shorthand for the numbers 6 (六) and 8 (八), and solid lines were shorthand for values of 7 (七) and 9 (九). The Great Commentary contains a late classic description of a process where various numerological operations are performed on a bundle of 50 stalks, leaving remainders of 6 to 9.</p>
<p>大衍之数五十,其用四十有九。分而为二以象两,挂一以象三,揲之以四以象四时,归奇于扐以象闰。五岁再闰,故再扐而后挂。天一,地二;天三,地四;天五,地六;天七,地八;天九,地十。天数五,地数五。五位相得而各有合,天数二十有五,地数三十,凡天地之数五十有五,此所以成变化而行鬼神也。乾之策二百一十有六,坤之策百四十有四,凡三百六十,当期之日。二篇之策,万有一千五百二十,当万物之数也。是故四营而成《易》,十有八变而成卦,八卦而小成。引而伸之,触类而长之,天下之能事毕矣。显道神德行,是故可与酬酢,可与祐神矣。子曰:“知变化之道者,其知神之所为乎。”</p>
<h1>Install</h1>
<pre><code>pip install iching</code></pre>
<h1>Use</h1>
<pre><code>from iching import iching</code></pre>
<h5>1. Predicting Six Yao</h5>
<pre><code>iching.getPredict()</code></pre>
<h5>2. Get the iching name</h5>
<pre><code>fixPred, changePred = iching.getPredict()
iching.interpretPredict(fixPred, changePred )</code></pre>
<h5>First Change</h5>
<pre><code>data = 50 - 1
sky, earth, firstChange, data = iching.getChange(data)
print sky, '\n', earth, '\n',firstChange, '\n', data</code></pre>
<h5>Second Change</h5>
<pre><code>sky, earth, secondChange, data = iching.getChange(data)
print sky, '\n', earth, '\n',secondChange, '\n', data</code></pre>
<h5>Third Change</h5>
<pre><code>sky, earth, thirdChange, data = iching.getChange(data)
print sky, '\n', earth, '\n',thirdChange, '\n', data</code></pre>
</div>
</div>
</div>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iching-2.6.0.tar.gz (251.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iching-2.6.0-py2.py3-none-any.whl (513.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file iching-2.6.0.tar.gz.

File metadata

  • Download URL: iching-2.6.0.tar.gz
  • Upload date:
  • Size: 251.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iching-2.6.0.tar.gz
Algorithm Hash digest
SHA256 24e5c1d43197ab495bf27d7134c172dd6dc7c1df2d062e8187dd01689fffd2b5
MD5 6b9d29aa8ced19f97835df1929031476
BLAKE2b-256 4e43fa96089ee6c8f6fad9302dcaba4d587340986ccb7c0e7a27b30949ed9dfb

See more details on using hashes here.

File details

Details for the file iching-2.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for iching-2.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 298754aed53fdfc8b1f154557044e619576908006a8f7b2aea3409eb113ca1a2
MD5 2e0f6875225299afe17c2e07cb87d216
BLAKE2b-256 1a9e052bde556f00ca6d00f2e7d9fde4cb7431cb0085713b4c31b47dbef69a8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page