No project description provided
Project description
import datetime
import cnlunar
# a = cnlunar.Lunar() # 为空为当前时间
a = cnlunar.Lunar(datetime.datetime(2019, 2, 4, 22, 30))
‘日期’: a.date,
‘农历数字’: (a.lunarYear, a.lunarMonth, a.lunarDay, ‘闰’ if a.isLunarLeapMonth else ‘’),
‘农历’: ‘%s %s[%s]年 %s%s’ % (a.lunarYearCn, a.year8Char, a.chineseYearZodiac, a.lunarMonthCn, a.lunarDayCn),
‘星期’: a.weekDayCn,
# 未增加除夕
‘今日节日’: (a.get_legalHolidays(), a.get_otherHolidays(), a.get_otherLunarHolidays()),
‘八字’: ‘ ‘.join([a.year8Char, a.month8Char, a.day8Char, a.twohour8Char]),
‘今日节气’: a.todaySolarTerms,
‘下一节气’: (a.nextSolarTerm, a.nextSolarTermDate, a.nextSolarTermYear),
‘今年节气表’: a.thisYearSolarTermsDic,
‘季节’: a.lunarSeason,
‘今日时辰’: a.twohour8CharList,
‘时辰凶吉’: a.get_twohourLuckyList(),
‘生肖冲煞’: a.chineseZodiacClash,
‘星座’: a.starZodiac,
‘星次’: a.todayEastZodiac,
‘彭祖百忌’: a.get_pengTaboo(),
‘彭祖百忌精简’: a.get_pengTaboo(long=4, delimit=’<br>’),
‘十二神’: a.get_today12DayOfficer(),
‘廿八宿’: a.get_the28Stars(),
‘今日三合’: a.zodiacMark3List,
‘今日六合’: a.zodiacMark6,
‘今日五行’: a.get_today5Elements(),
‘纳音’: a.get_nayin(),
‘九宫飞星’: a.get_the9FlyStar(),
‘吉神方位’: a.get_luckyGodsDirection(),
‘今日胎神’: a.get_fetalGod(),
‘神煞宜忌’: a.angelDemon,
‘今日吉神’: a.goodGodName,
‘今日凶煞’: a.badGodName,
‘宜’: a.goodThing,
‘忌’: a.badThing,
‘时辰经络’: a.meridians
八字月柱与八字日柱算神煞版本
日期 : 2021-02-07 10:30:00
农历数字 : (2020, 12, 26, ‘’)
农历 : 二零二零 庚子[鼠]年 腊月大廿六
星期 : 星期日
今日节日 : (‘’, ‘京汉铁路罢工纪念’, ‘’)
八字 : 庚子 庚寅 丙戌 癸巳
今日节气 : 无
下一节气 : (‘雨水’, (2, 18), 2021)
今年节气表 : {‘小寒’: (1, 5), ‘大寒’: (1, 20), ‘立春’: (2, 3), ‘雨水’: (2, 18), ‘惊蛰’: (3, 5), ‘春分’: (3, 20), ‘清明’: (4, 4), ‘谷雨’: (4, 20), ‘立夏’: (5, 5), ‘小满’: (5, 21), ‘芒种’: (6, 5), ‘夏至’: (6, 21), ‘小暑’: (7, 7), ‘大暑’: (7, 22), ‘立秋’: (8, 7), ‘处暑’: (8, 23), ‘白露’: (9, 7), ‘秋分’: (9, 23), ‘寒露’: (10, 8), ‘霜降’: (10, 23), ‘立冬’: (11, 7), ‘小雪’: (11, 22), ‘大雪’: (12, 7), ‘冬至’: (12, 21)}
季节 : 孟春
今日时辰 : [‘戊子’, ‘己丑’, ‘庚寅’, ‘辛卯’, ‘壬辰’, ‘癸巳’, ‘甲午’, ‘乙未’, ‘丙申’, ‘丁酉’, ‘戊戌’, ‘己亥’, ‘庚子’]
时辰凶吉 : [‘凶’, ‘凶’, ‘吉’, ‘凶’, ‘吉’, ‘吉’, ‘凶’, ‘凶’, ‘吉’, ‘吉’, ‘凶’, ‘吉’, ‘凶’]
生肖冲煞 : 狗日冲龙
星座 : 水瓶座
星次 : 娵訾
彭祖百忌 : 丙不修灶 必见灾殃,戌不吃犬 作怪上床
彭祖百忌精简 : 丙不修灶<br>戌不吃犬
十二神 : (‘成’, ‘司命’, ‘黄道日’)
廿八宿 : 星日马
今日三合 : [‘虎’, ‘马’]
今日六合 : 兔
今日五行 : [‘天干’, ‘丙’, ‘属火’, ‘地支’, ‘戌’, ‘属土’, ‘纳音’, ‘土’, ‘属土’, ‘廿八宿’, ‘星’, ‘宿’, ‘十二神’, ‘成’, ‘日’]
纳音 : 屋上土
九宫飞星 : 279135684
吉神方位 : [‘喜神西南’, ‘财神西南’, ‘福神西北’, ‘阳贵正西’, ‘阴贵西北’]
今日胎神 : 厨灶栖外西北
神煞宜忌 : (([‘月德’, ‘三合’, ‘四相’, ‘天喜’, ‘月恩’, ‘天官’], [‘月厌’, ‘神号’, ‘伏兵’, ‘地火’, ‘受死’, ‘飞廉’, ‘大煞’, ‘四击’, ‘宝日’]), ([‘祭祀’, ‘出行’, ‘结婚姻’, ‘宴会’, ‘嫁娶’, ‘修造’, ‘求医疗病’, ‘上表章’, ‘上官’, ‘入学’, ‘进人口’, ‘竖柱上梁’, ‘经络’, ‘开市’, ‘纳财’, ‘安碓硙’, ‘栽种’, ‘牧养’, ‘安葬’, ‘选将’, ‘求嗣’, ‘酝酿’, ‘临政’, ‘庆赐’, ‘安抚边境’, ‘解除’, ‘筑堤防’, ‘祈福’, ‘出师’, ‘纳采’, ‘纳畜’, ‘营建’, ‘立券交易’, ‘缮城郭’, ‘修宫室’, ‘恤孤茕’, ‘覃恩’, ‘裁制’, ‘开仓’, ‘修仓库’, ‘上册’, ‘雪冤’, ‘搬移’], [‘剃头’, ‘冠带’, ‘修置产室’, ‘开渠’, ‘穿井’, ‘平治道涂’, ‘破屋坏垣’, ‘伐木’, ‘畋猎’, ‘破土’, ‘启攒’, ‘布政事’, ‘修饰垣墙’, ‘整手足甲’, ‘远回’, ‘整容’, ‘补垣’, ‘取鱼’, ‘鼓铸’, ‘塞穴’]))
今日吉神 : [‘月德’, ‘三合’, ‘四相’, ‘天喜’, ‘月恩’, ‘天官’]
今日凶煞 : [‘月厌’, ‘神号’, ‘伏兵’, ‘地火’, ‘受死’, ‘飞廉’, ‘大煞’, ‘四击’, ‘宝日’]
宜忌等第 : 中:吉不抵凶,遇德从宜不从忌,不遇从忌不从宜。
宜 : [‘祭祀’, ‘出行’, ‘结婚姻’, ‘宴会’, ‘嫁娶’, ‘修造’, ‘求医疗病’, ‘上表章’, ‘上官’, ‘入学’, ‘进人口’, ‘竖柱上梁’, ‘经络’, ‘开市’, ‘纳财’, ‘安碓硙’, ‘栽种’, ‘牧养’, ‘安葬’, ‘选将’, ‘求嗣’, ‘酝酿’, ‘临政’, ‘庆赐’, ‘安抚边境’, ‘解除’, ‘筑堤防’, ‘祈福’, ‘出师’, ‘纳采’, ‘纳畜’, ‘营建’, ‘立券交易’, ‘缮城郭’, ‘修宫室’, ‘恤孤茕’, ‘覃恩’, ‘裁制’, ‘开仓’, ‘修仓库’, ‘上册’, ‘雪冤’, ‘搬移’]
忌 : [‘剃头’, ‘冠带’, ‘修置产室’, ‘开渠’, ‘穿井’, ‘平治道涂’, ‘破屋坏垣’, ‘伐木’, ‘畋猎’, ‘破土’, ‘启攒’, ‘布政事’, ‘修饰垣墙’, ‘整手足甲’, ‘远回’, ‘整容’, ‘补垣’, ‘取鱼’, ‘鼓铸’, ‘塞穴’]
时辰经络 : 脾
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
Built Distribution
File details
Details for the file cnlunar-0.1.1.tar.gz
.
File metadata
- Download URL: cnlunar-0.1.1.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6630ec6171d25448db6e5b22b6d8fa61c3ce281055eae3775715c4c2c65da278 |
|
MD5 | e1ea84d61cd0f2a0fcaf4ca90f1acf63 |
|
BLAKE2b-256 | fba4c723048ba1bc861b388b1c742984039442998be71c73a4dc0740bafc615f |
File details
Details for the file cnlunar-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cnlunar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 46.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480ea5968c56501c70c47326cac8ea0b9608ef2a9fda25d857eeee0141641ba7 |
|
MD5 | d1ca20ff4dd2abfb9573b1012225e4c8 |
|
BLAKE2b-256 | edb522f8711a017bc790cd6cf1d5fb95a173a3dc978a340e580d293c8ee19dac |