Data library for GuGong, a.k.a as The Palace Museum or The Fobidden City
Project description
gugong
gugong
is an accessible data library for The Fobidden City located in Beijing, China.
The location of The Forbidden City is now called The Palace Museum.
While "The Fobidden City" might be more commonly known from the western world, the other name "GuGong", or literally translated as "The Past Palace", is more commonly used domestically in China. It's a shorter two-character-term "故宫" than the 3-character-term "紫禁城". The other possible reason might be today it's called "The Palace Museum", with the Chinese name as "故宫博物院". So it's just easy to call the first part of the name ommitting the word "musuem".
This library is built with historic facts and grounds collected from various open resources. It could be used as learning and educational purposes.
Background
2020 is the 600 anniversity of the establishment of The Fobidden City. Besides, it's a good timing to revisit the 600 years of history of the Ming and Qing dynasty together with The Fobidden City as part of the celebration.
Install
If you have PIP, install the package with the one liner.
$ pip install gugong
...
How to use the library
Import the library
In [1]: from gugong import GuGong
In [2]: gg = GuGong()
In [3]: gg.name
Out[3]: '故宫'
Check the data in the library
In [4]: for place in gg.places:
...: print(place.name, place.arch_type)
午门 0
神武门 0
东华门 0
西华门 0
太和门 0
...
In [5]: for empire in gg.empires:
...: print(empire.epoch_name, empire.temple_name)
...:
永乐 明成祖
洪熙 明仁宗
宣德 明宣宗
正统 明英宗
景泰 明景帝
成化 明宪宗
弘治 明孝宗
正德 明武宗
嘉靖 明世宗
隆庆 明穆宗
万历 明神宗
泰昌 明光宗
天启 明熹宗
崇祯 明思宗
福临 清世祖
康熙 清圣祖
雍正 清世宗
乾隆 清高宗
嘉庆 清仁宗
道光 清宣宗
咸丰 清文宗
同治 清穆宗
光绪 清德宗
宣统 清宣统皇帝
TODO
- Simple Q&A
- How to promounce some place or name in the Palace Museum
- When is this built?
- Who is this?
- External Interfaces
- To Baidu for more smartness about knowledge?
- To Amap for more smartness about geography
Contact
If you find any mistake of inaccuracy in the data, please simply file an issue in GitHub.
If you have any concern on data infringement, please reach out to the author on the email saphires@163.com .
Project details
Release history Release notifications | RSS feed
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 gugong-0.5.5.tar.gz
.
File metadata
- Download URL: gugong-0.5.5.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cd93f47cd8e074f18620b9152fea69847132cceab02c973facf59585d3c450a |
|
MD5 | d495d8e942e0282c46ace454a14b0055 |
|
BLAKE2b-256 | 95a6118b152d534414031c71bead3a9aeb15a09dd1bf32193d390a42ae9937d6 |
File details
Details for the file gugong-0.5.5-py3-none-any.whl
.
File metadata
- Download URL: gugong-0.5.5-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7845eb6e6aadf1a27a6823d83252370fd588442f43dc3e886d0ebaaeb34c0943 |
|
MD5 | 8b6c45eb02cb7c385c8048581bd19d4f |
|
BLAKE2b-256 | 02272303b88e92ab8f9c57fa3f50d658b7bcb0e6bfe63892c6224d0731fed2c8 |