doushu 0.4.1__py3-none-any.whl

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.
doushu/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """ziwei的同版别名入口。"""
2
+
3
+ import ziwei as _ziwei
doushu/birth.py ADDED
@@ -0,0 +1,9 @@
1
+ from ziwei.birth import (
2
+ BirthRecord as BirthRecord,
3
+ CalculationInput as CalculationInput,
4
+ Gender as Gender,
5
+ GregorianBirthRecord as GregorianBirthRecord,
6
+ LunarBirthRecord as LunarBirthRecord,
7
+ TimePrecision as TimePrecision,
8
+ shichen_from_time as shichen_from_time,
9
+ )
doushu/brightness.py ADDED
@@ -0,0 +1,6 @@
1
+ from ziwei.brightness import (
2
+ BrightnessLevel as BrightnessLevel,
3
+ BrightnessReading as BrightnessReading,
4
+ BrightnessTable as BrightnessTable,
5
+ star_brightness as star_brightness,
6
+ )
doushu/bureau.py ADDED
@@ -0,0 +1,5 @@
1
+ from ziwei.bureau import (
2
+ WuxingJu as WuxingJu,
3
+ bureau_number as bureau_number,
4
+ bureau_of as bureau_of,
5
+ )
doushu/calendar.py ADDED
@@ -0,0 +1,15 @@
1
+ from ziwei.calendar import (
2
+ LICHUN_DATE_YEAR_RANGE as LICHUN_DATE_YEAR_RANGE,
3
+ LunarAlgorithm as LunarAlgorithm,
4
+ apparent_solar as apparent_solar,
5
+ celestial_version as celestial_version,
6
+ gregorian_to_lunar as gregorian_to_lunar,
7
+ lichun_date as lichun_date,
8
+ lichun_jd as lichun_jd,
9
+ lunar_to_gregorian as lunar_to_gregorian,
10
+ lunar_year_info as lunar_year_info,
11
+ supported_lunar_year_range as supported_lunar_year_range,
12
+ utc_civil as utc_civil,
13
+ utc_to_ut1_jd as utc_to_ut1_jd,
14
+ validate_lunar_date as validate_lunar_date,
15
+ )
doushu/chart.py ADDED
@@ -0,0 +1,9 @@
1
+ from ziwei.chart import (
2
+ LiunianView as LiunianView,
3
+ PalaceView as PalaceView,
4
+ ZiweiChart as ZiweiChart,
5
+ chart_brightness as chart_brightness,
6
+ create_chart as create_chart,
7
+ liunian_view as liunian_view,
8
+ palace_view as palace_view,
9
+ )
doushu/config.py ADDED
@@ -0,0 +1,9 @@
1
+ from ziwei.config import (
2
+ ChartConfig as ChartConfig,
3
+ DayRollover as DayRollover,
4
+ LeapMonthPolicy as LeapMonthPolicy,
5
+ POLICY_ENUMS as POLICY_ENUMS,
6
+ PolicyOption as PolicyOption,
7
+ TianmaRule as TianmaRule,
8
+ YearBoundary as YearBoundary,
9
+ )
doushu/decades.py ADDED
@@ -0,0 +1,9 @@
1
+ from ziwei.decades import (
2
+ DECADE_DEFINITION as DECADE_DEFINITION,
3
+ DECADE_RULE_ID as DECADE_RULE_ID,
4
+ Decade as Decade,
5
+ Direction as Direction,
6
+ decade_direction as decade_direction,
7
+ decade_periods as decade_periods,
8
+ place_decades as place_decades,
9
+ )
doushu/ganzhi.py ADDED
@@ -0,0 +1,15 @@
1
+ from ziwei.ganzhi import (
2
+ Dizhi as Dizhi,
3
+ Ganzhi as Ganzhi,
4
+ JIAZI as JIAZI,
5
+ NAYIN_ELEMENT as NAYIN_ELEMENT,
6
+ Tiangan as Tiangan,
7
+ WUHU_YIN as WUHU_YIN,
8
+ Wuxing as Wuxing,
9
+ YEAR_GANZHI as YEAR_GANZHI,
10
+ Yinyang as Yinyang,
11
+ nayin as nayin,
12
+ palace_stems as palace_stems,
13
+ year_ganzhi as year_ganzhi,
14
+ yin_stem as yin_stem,
15
+ )
@@ -0,0 +1,3 @@
1
+ from ziwei.knowledge import (
2
+ load_catalog as load_catalog,
3
+ )
@@ -0,0 +1,4 @@
1
+ from ziwei.knowledge.catalog import (
2
+ Catalog as Catalog,
3
+ Record as Record,
4
+ )
@@ -0,0 +1,13 @@
1
+ from ziwei.knowledge.model import (
2
+ Citation as Citation,
3
+ Concept as Concept,
4
+ ConceptKind as ConceptKind,
5
+ CurationStatus as CurationStatus,
6
+ EvidenceAspect as EvidenceAspect,
7
+ KnowledgeEntry as KnowledgeEntry,
8
+ PremiseStatus as PremiseStatus,
9
+ RuleVariant as RuleVariant,
10
+ Source as Source,
11
+ SourceStatus as SourceStatus,
12
+ TextLayer as TextLayer,
13
+ )
doushu/liunian.py ADDED
@@ -0,0 +1,11 @@
1
+ from ziwei.liunian import (
2
+ LIUNIAN_MINGGONG_RULE_ID as LIUNIAN_MINGGONG_RULE_ID,
3
+ LIUNIAN_STARS_DEFINITION as LIUNIAN_STARS_DEFINITION,
4
+ LIUNIAN_STARS_RULE_ID as LIUNIAN_STARS_RULE_ID,
5
+ LiunianBoundary as LiunianBoundary,
6
+ LiunianStars as LiunianStars,
7
+ LiunianYear as LiunianYear,
8
+ liunian_minggong as liunian_minggong,
9
+ liunian_on_date as liunian_on_date,
10
+ liunian_stars as liunian_stars,
11
+ )
doushu/palaces.py ADDED
@@ -0,0 +1,15 @@
1
+ from ziwei.palaces import (
2
+ OPPOSITE_RULE_ID as OPPOSITE_RULE_ID,
3
+ Palace as Palace,
4
+ PalaceName as PalaceName,
5
+ SANFANG_SIZHENG_RULE_ID as SANFANG_SIZHENG_RULE_ID,
6
+ effective_month as effective_month,
7
+ minggong_dizhi as minggong_dizhi,
8
+ month_palace_index as month_palace_index,
9
+ opposite_dizhi as opposite_dizhi,
10
+ palace_dizhi as palace_dizhi,
11
+ palace_ganzhi as palace_ganzhi,
12
+ sanfang_sizheng as sanfang_sizheng,
13
+ shengong_dizhi as shengong_dizhi,
14
+ twelve_palaces as twelve_palaces,
15
+ )
doushu/py.typed ADDED
File without changes
doushu/render.py ADDED
@@ -0,0 +1,4 @@
1
+ from ziwei.render import (
2
+ render_svg as render_svg,
3
+ render_text as render_text,
4
+ )
doushu/resolver.py ADDED
@@ -0,0 +1,4 @@
1
+ from ziwei.resolver import (
2
+ DEFAULT_LUNAR_ALGORITHM as DEFAULT_LUNAR_ALGORITHM,
3
+ resolve as resolve,
4
+ )
doushu/sihua.py ADDED
@@ -0,0 +1,8 @@
1
+ from ziwei.sihua import (
2
+ SIHUA_TABLES as SIHUA_TABLES,
3
+ SihuaResult as SihuaResult,
4
+ SihuaTable as SihuaTable,
5
+ SihuaVariant as SihuaVariant,
6
+ shengnian_sihua as shengnian_sihua,
7
+ sihua_for_stem as sihua_for_stem,
8
+ )
doushu/stars.py ADDED
@@ -0,0 +1,18 @@
1
+ from ziwei.stars import (
2
+ MAJOR_STARS as MAJOR_STARS,
3
+ STAR_RULES as STAR_RULES,
4
+ Star as Star,
5
+ StarPlacement as StarPlacement,
6
+ StarRule as StarRule,
7
+ lucun_yangtuo_dizhi as lucun_yangtuo_dizhi,
8
+ place_fire_bell as place_fire_bell,
9
+ place_hongluan_tianxi as place_hongluan_tianxi,
10
+ place_hour_stars as place_hour_stars,
11
+ place_major_stars as place_major_stars,
12
+ place_month_stars as place_month_stars,
13
+ place_stars as place_stars,
14
+ place_stem_stars as place_stem_stars,
15
+ tianfu_dizhi as tianfu_dizhi,
16
+ tianma_dizhi as tianma_dizhi,
17
+ ziwei_dizhi as ziwei_dizhi,
18
+ )
doushu/timezone.py ADDED
@@ -0,0 +1,10 @@
1
+ from ziwei.timezone import (
2
+ AmbiguousTimeError as AmbiguousTimeError,
3
+ FixedOffset as FixedOffset,
4
+ IanaTimezone as IanaTimezone,
5
+ NonexistentTimeError as NonexistentTimeError,
6
+ ResolvedTime as ResolvedTime,
7
+ TimezoneData as TimezoneData,
8
+ current_timezone_data as current_timezone_data,
9
+ resolve_civil_time as resolve_civil_time,
10
+ )
doushu/tongxian.py ADDED
@@ -0,0 +1,8 @@
1
+ from ziwei.tongxian import (
2
+ TONGXIAN_PALACES as TONGXIAN_PALACES,
3
+ TONGXIAN_RULE_ID as TONGXIAN_RULE_ID,
4
+ Tongxian as Tongxian,
5
+ TongxianBoundary as TongxianBoundary,
6
+ tongxian_at_age as tongxian_at_age,
7
+ tongxian_palace as tongxian_palace,
8
+ )
doushu/xiaoxian.py ADDED
@@ -0,0 +1,7 @@
1
+ from ziwei.xiaoxian import (
2
+ XIAOXIAN_DEFINITION as XIAOXIAN_DEFINITION,
3
+ XIAOXIAN_RULE_ID as XIAOXIAN_RULE_ID,
4
+ XIAOXIAN_STARTS as XIAOXIAN_STARTS,
5
+ Xiaoxian as Xiaoxian,
6
+ xiaoxian_at_age as xiaoxian_at_age,
7
+ )
doushu/yunxian.py ADDED
@@ -0,0 +1,4 @@
1
+ from ziwei.yunxian import (
2
+ Yunxian as Yunxian,
3
+ yunxian_at_age as yunxian_at_age,
4
+ )
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: doushu
3
+ Version: 0.4.1
4
+ Summary: 紫微斗数ziwei的同版安装与导入别名
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://0xf3cd.github.io/ziwei/
7
+ Project-URL: Repository, https://github.com/0xf3cd/ziwei
8
+ Project-URL: Issues, https://github.com/0xf3cd/ziwei/issues
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Typing :: Typed
17
+ Requires-Python: <3.15,>=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: ziwei==0.4.1
21
+ Dynamic: license-file
22
+
23
+ # doushu(斗数)
24
+
25
+ `doushu`是[ziwei](https://github.com/0xf3cd/ziwei)的安装与导入别名,提供紫微斗数排盘和有出处的知识查询。
26
+ 它安装同版本的`ziwei`,从对应子模块转发公开函数、类型、枚举与数据,不包含另一套排盘实现。
27
+
28
+ ```sh
29
+ python -m pip install doushu
30
+ ```
31
+
32
+ ```python
33
+ from doushu.knowledge import load_catalog
34
+
35
+ print(load_catalog().get("concept.star.ziwei").id)
36
+ ```
37
+
38
+ 输出为`concept.star.ziwei`。排盘所需的出生资料与口径配置见[完整命盘指南](https://0xf3cd.github.io/ziwei/docs/chart.html)。
39
+ 原有`ziwei.*`导入继续可用,两种路径的公开对象相同。
40
+ 请从对应子模块路径导入,不依赖包入口自动加载子模块;公开模块见[API参考](https://0xf3cd.github.io/ziwei/docs/api.html)。
41
+
42
+ 只提供纯Python wheel,Python与平台范围和主包相同;主包的原生历法依赖仍有平台限制。
43
+ 使用独立虚拟环境,详见[安装要求](https://github.com/0xf3cd/ziwei#安装要求)。
@@ -0,0 +1,28 @@
1
+ doushu/__init__.py,sha256=uo8UfJU8wU2rxJLtCk2TDLfX3Vlc67TkossIHiPHwh8,60
2
+ doushu/birth.py,sha256=Hn0jBRJ4sHGXs1IepRvJMTU2hCZeIcNT1NpxqJj8a88,282
3
+ doushu/brightness.py,sha256=z-ihAhacBW-BFYZtCS7CwH52v8ekkQDj49Yv08LJXRI,189
4
+ doushu/bureau.py,sha256=YTAv6VYaxsTEDZUGnl7gTmvm-0vjVpqlCR5gAwv0Xr4,113
5
+ doushu/calendar.py,sha256=96Ywrh5esc8nnk4BbocXtdcsIqrNyi0uYCFdos9K1oQ,545
6
+ doushu/chart.py,sha256=U7HLsp6juoSYH5MYw-OXcJlbNCMnRy1sL6HfNAVfpYA,248
7
+ doushu/config.py,sha256=MkSJ4KVEmgxkKk8T7INCEqf0bJGvzngIe7iBXodhOrw,251
8
+ doushu/decades.py,sha256=VSH2JS5VmIr-t_oaSqvAzzCJui963si0mkvJL2KWXSY,264
9
+ doushu/ganzhi.py,sha256=AYid9ziq2mspG78JaJoyqGF4G83KPwltsw0CbAQQ1TI,341
10
+ doushu/liunian.py,sha256=F5PyQjR_yjoD2rOQ9lVHKbl7R8eXHnIOxxSRQZmnfl8,404
11
+ doushu/palaces.py,sha256=V6bvg6QnFq0MWLW1J-K6xIvlRrdbHChfq7hgix2IzC8,502
12
+ doushu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ doushu/render.py,sha256=h_SkFziAMMU7unJA4aF13N1pu5CqoNp_HDf3Vnb7iP0,87
14
+ doushu/resolver.py,sha256=BjM8GBL_Fv-Dm2pu_RcSP3zduA395HnueNABXD67iAY,107
15
+ doushu/sihua.py,sha256=krLydKeDcRjzy9wx20FgkaWMmnm1FqvzSTBElLDVscY,224
16
+ doushu/stars.py,sha256=UYh7pUoX6KOul3Lp_fZIDDr2Z5TTYhH17Dka-KXmWzs,582
17
+ doushu/timezone.py,sha256=haCHZOqO1PErZQkf8Le4DD-tT0NqpT10MfEjsue7ztQ,343
18
+ doushu/tongxian.py,sha256=W6Wd3PwVedO9-bCe4rOZ3JnIPpENjKt_HHUGsEVzwj0,251
19
+ doushu/xiaoxian.py,sha256=j1tNCXXpVtF2AN3dwXtuk0Ab3WvqsPBa4iRf4z3Daz8,217
20
+ doushu/yunxian.py,sha256=DEQ64ZEdeDqLMX3PgUwo0z0wTsOis2BhBH2xeSkwIj8,88
21
+ doushu/knowledge/__init__.py,sha256=9DBDlhZD0jqRF3mNhD6WJjOcMp5e7kTOU6mNNJkfbCA,64
22
+ doushu/knowledge/catalog.py,sha256=FnCdR0zb1Nc3fFRYlp2NOGks06rSIuHcUBE-1WlSqXs,82
23
+ doushu/knowledge/model.py,sha256=U3YGA0pBHPq06_naEOi1Jg1h5ai7u_kxJ0ZKWUwZMNw,364
24
+ doushu-0.4.1.dist-info/licenses/LICENSE,sha256=8Dj5cLfUJwUUTsLdDyC80v6DaKtCDrBAtMXSkQlUC0M,1063
25
+ doushu-0.4.1.dist-info/METADATA,sha256=ACNBJlnXHi3utTJipHpH3DA2PfGrFZRIJYvvI-FLk3A,1852
26
+ doushu-0.4.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
27
+ doushu-0.4.1.dist-info/top_level.txt,sha256=9fWWSqmThK6cghb41ZLtB-NlDGmzgRcHWMe7HaDcyGM,7
28
+ doushu-0.4.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 0xf3cd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ doushu