🌱 Know thyself and kindle the fire in your heart!
chengjun / iching Goto Github PK
View Code? Open in Web Editor NEWA python package of I Ching 《易经》蓍草卦的Python版本
Home Page: https://pypi.python.org/pypi/iching/
License: MIT License
A python package of I Ching 《易经》蓍草卦的Python版本
Home Page: https://pypi.python.org/pypi/iching/
License: MIT License
in package_data, the name 101111 is missing
Releasing a Python package to PyPI (Python Package Index) involves several steps. Here's a step-by-step guide to help you publish your Python package:
First, make sure your Python package is properly structured. It should contain the necessary files like setup.py
(for package metadata), your Python code, and any other required files.
setup.py
file in your package directory. Here's an example setup.py
file:from setuptools import setup
setup(
name='your-package-name',
version='1.0.0',
packages=['your_package'],
url='https://github.com/yourusername/your-package',
author='Your Name',
author_email='[email protected]',
description='Description of your package',
install_requires=[],
)
DESCRIPTION.rst
file in your package directory. Here's an example DESCRIPTION.rst
file:Quick installation::
pip install iching
Quick Start::
from iching import iching
iching.predict(19850927, 20180119)
See the details: https://github.com/chengjun/iching/blob/master/DESCRIPTION.rst
If you haven't already, create an account on PyPI.
Make sure you have the necessary tools installed:
pip install setuptools wheel twine
Navigate to your package directory and run the following commands to build your package:
python setup.py sdist bdist_wheel
For example:
(base) MacBook-Pro-4:iching datalab$ python setup.py sdist bdist_wheel
This will create distribution packages in the dist
directory.
Use twine
to upload your package to PyPI. Run the following command:
twine upload dist/*
(base) MacBook-Pro-4:iching datalab$ twine upload --verbose --repository-url https://upload.pypi.org/legacy/ --username chengjun --password <your_password> dist/*
Please replace <your_password> with your PyPI password.
This command will upload all files in the dist
directory to PyPI.
iching.interpretPredict(a,b )在windows下出现中文乱码,mac下正常。
from iching import iching
now, future = iching.getPredict()
iching.interpretPredict(now, future )
iching.ichingText(now, iching)
UnicodeEncodeError: 'gbk' codec can't encode character u'\u200b' in position 995: illegal multibyte sequence
Did anybody have this issue?
iching.plotTransitionRemainder(1000, w = 50)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'plotTransitionRemainder'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.