Skip to content

Commit

Permalink
add ukrainemap
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesPikachu committed Feb 26, 2022
1 parent 3733e2a commit 993357e
Show file tree
Hide file tree
Showing 35 changed files with 230 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ You can star this repository to keep track of the project if it's helpful for yo
| controlpcbyemail | [click](https://mp.weixin.qq.com/s/KnG-mncegaB35v5THAUJXQ) | [click](./pytools/modules/controlpcbyemail) | 邮件控制电脑 |
| playfireworks | [click](https://mp.weixin.qq.com/s/wzz_7gKIt7iU-7kM_9o_pw) | [click](./pytools/modules/playfireworks) | 放烟花特效 |
| arxivhelper | [click](https://mp.weixin.qq.com/s/XypPxlWmzbRoEEEhusEXJA) | [click](./pytools/modules/arxivhelper) | Arxiv小助手 |
| ukrainemap | [click]() | [click](./pytools/modules/ukrainemap) | 乌克兰地图查询系统 |


# Install
Expand Down
4 changes: 3 additions & 1 deletion docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

- 2022-02-13: 完成v0.1.10, 升级桌面宠物,支持冰墩墩版本。

- 2022-02-14: 完成v0.1.11, 修复Linux上无法运行问题和pyinstaller打包的问题。
- 2022-02-14: 完成v0.1.11, 修复Linux上无法运行问题和pyinstaller打包的问题。

- 2022-02-15: 完成v0.1.12, 添加乌克兰地图查询系统。
24 changes: 24 additions & 0 deletions docs/Quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,30 @@ tool_client.execute('arxivhelper', config={'time_interval': 3600*5, 'server_key'
}
```

#### 乌克兰地图查询系统
1.公众号文章链接

[点击查看]()

2.功能介绍

简单的乌克兰地图查询系统。

3.调用示例代码
```python
from pytools import pytools

tool_client = pytools.pytools()
tool_client.execute('ukrainemap')
```

4.config中支持的参数
```
{
title: 软件显示的标题, 默认值"乌克兰地图查询系统 —— Charles的皮卡丘",
}
```


## 随机运行一个小程序
写如下代码,保存并运行即可:
Expand Down
2 changes: 1 addition & 1 deletion pytools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'''url'''
__url__ = 'https://github.com/CharlesPikachu/pytools'
'''version'''
__version__ = '0.1.11'
__version__ = '0.1.12'
'''author'''
__author__ = 'Charles'
'''email'''
Expand Down
1 change: 1 addition & 0 deletions pytools/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .timer import Timer
from .clock import Clock
from .runcat import RunCat
from .ukrainemap import UkraineMap
from .desktoppet import DesktopPet
from .translator import Translator
from .calculator import Calculator
Expand Down
2 changes: 2 additions & 0 deletions pytools/modules/ukrainemap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'''初始化'''
from .ukrainemap import UkraineMap
Binary file added pytools/modules/ukrainemap/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Cherkasy.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Chernihiv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Chernivtsi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[25.742324829101562,48.62969970703125],[25.753341674804688,48.632568359375],[25.757476806640625,48.639678955078125],[25.759994506835938,48.6488037109375],[25.766571044921875,48.657623291015625],[25.793533325195312,48.6700439453125],[25.808883666992188,48.661041259765625],[25.82098388671875,48.64508056640625],[25.838546752929688,48.636566162109375],[25.859588623046875,48.61871337890625],[25.863357543945312,48.61260986328125],[25.862579345703125,48.603515625],[25.862991333007812,48.600799560546875],[25.91162109375,48.588134765625],[25.927841186523438,48.58685302734375],[25.944076538085938,48.5887451171875],[25.960189819335938,48.596405029296875],[25.973785400390625,48.6163330078125],[25.985626220703125,48.623504638671875],[26.01031494140625,48.615478515625],[26.019775390625,48.61602783203125],[26.024734497070312,48.621368408203125],[26.0289306640625,48.6376953125],[26.033416748046875,48.64337158203125],[26.04913330078125,48.64764404296875],[26.05859375,48.641876220703125],[26.062301635742188,48.628326416015625],[26.060760498046875,48.609222412109375],[26.060760498046875,48.61602783203125],[26.051605224609375,48.583038330078125],[26.052597045898438,48.571685791015625],[26.064163208007812,48.55767822265625],[26.07977294921875,48.547271728515625],[26.099105834960938,48.540740966796875],[26.11724853515625,48.54193115234375],[26.129638671875,48.554595947265625],[26.113876342773438,48.570404052734375],[26.105819702148438,48.580841064453125],[26.102310180664062,48.5921630859375],[26.102310180664062,48.6065673828125],[26.104888916015625,48.611083984375],[26.133056640625,48.609222412109375],[26.145767211914062,48.596343994140625],[26.14453125,48.567962646484375],[26.149490356445312,48.53955078125],[26.18084716796875,48.52667236328125],[26.2388916015625,48.53411865234375],[26.2567138671875,48.533416748046875],[26.269012451171875,48.5301513671875],[26.29412841796875,48.519866943359375],[26.326583862304688,48.51153564453125],[26.355010986328125,48.510101318359375],[26.380538940429688,48.51708984375],[26.40399169921875,48.53411865234375],[26.422393798828125,48.52972412109375],[26.470550537109375,48.538055419921875],[26.489059448242188,48.5303955078125],[26.5152587890625,48.514862060546875],[26.522232055664062,48.50689697265625],[26.539901733398438,48.4788818359375],[26.552825927734375,48.46575927734375],[26.566360473632812,48.45733642578125],[26.583160400390625,48.452880859375],[26.605743408203125,48.451568603515625],[26.621856689453125,48.458251953125],[26.606979370117188,48.4923095703125],[26.61566162109375,48.506805419921875],[26.627288818359375,48.508331298828125],[26.634567260742188,48.503326416015625],[26.639328002929688,48.49652099609375],[26.643569946289062,48.492523193359375],[26.654052734375,48.491302490234375],[26.687652587890625,48.492523193359375],[26.708984375,48.496856689453125],[26.705169677734375,48.5069580078125],[26.68841552734375,48.51837158203125],[26.6708984375,48.52667236328125],[26.633224487304688,48.533416748046875],[26.614425659179688,48.5401611328125],[26.612564086914062,48.550872802734375],[26.6328125,48.562408447265625],[26.654876708984375,48.55877685546875],[26.691360473632812,48.54034423828125],[26.706192016601562,48.5361328125],[26.7218017578125,48.53515625],[26.734100341796875,48.541168212890625],[26.739166259765625,48.55767822265625],[26.734878540039062,48.5638427734375],[26.71612548828125,48.577728271484375],[26.711822509765625,48.5853271484375],[26.717208862304688,48.594757080078125],[26.728927612304688,48.5950927734375],[26.740615844726562,48.588897705078125],[26.745986938476562,48.578521728515625],[26.749710083007812,48.56158447265625],[26.759429931640625,48.550567626953125],[26.772750854492188,48.55096435546875],[26.787582397460938,48.568267822265625],[26.789291381835938,48.57843017578125],[26.783096313476562,48.59344482421875],[26.787582397460938,48.601776123046875],[26.797561645507812,48.60791015625],[26.80804443359375,48.609100341796875],[26.818756103515625,48.60662841796875],[26.829193115234375,48.601776123046875],[26.8226318359375,48.581207275390625],[26.82794189453125,48.561309814453125],[26.8414306640625,48.5462646484375],[26.859268188476562,48.54034423828125],[26.88494873046875,48.543548583984375],[26.8990478515625,48.551788330078125],[26.909698486328125,48.563079833984375],[26.92474365234375,48.575103759765625],[26.94525146484375,48.58135986328125],[26.967056274414062,48.5806884765625],[27.00360107421875,48.575103759765625],[27.017242431640625,48.564544677734375],[27.023391723632812,48.56085205078125],[27.027618408203125,48.562591552734375],[27.031814575195312,48.566253662109375],[27.037704467773438,48.568267822265625],[27.049850463867188,48.56732177734375],[27.069992065429688,48.562652587890625],[27.113357543945312,48.559295654296875],[27.122756958007812,48.560791015625],[27.129425048828125,48.565338134765625],[27.141311645507812,48.57904052734375],[27.146942138671875,48.581939697265625],[27.181411743164062,48.581939697265625],[27.192108154296875,48.5797119140625],[27.214126586914062,48.57012939453125],[27.226425170898438,48.568267822265625],[27.23748779296875,48.568817138671875],[27.24755859375,48.570404052734375],[27.255569458007812,48.574432373046875],[27.260528564453125,48.581939697265625],[27.261764526367188,48.595733642578125],[27.255416870117188,48.599822998046875],[27.245498657226562,48.600921630859375],[27.236038208007812,48.605499267578125],[27.234375,48.61846923828125],[27.254791259765625,48.62115478515625],[27.294692993164062,48.61602783203125],[27.304458618164062,48.610870361328125],[27.3126220703125,48.604827880859375],[27.321823120117188,48.600830078125],[27.334991455078125,48.601776123046875],[27.345123291015625,48.60760498046875],[27.3587646484375,48.624420166015625],[27.370391845703125,48.62969970703125],[27.409713745117188,48.6207275390625],[27.438186645507812,48.602508544921875],[27.458404541015625,48.577301025390625],[27.472824096679688,48.547149658203125],[27.494369506835938,48.482208251953125],[27.503570556640625,48.472686767578125],[27.503890991210938,48.47235107421875],[27.503814697265625,48.47235107421875],[27.480880737304688,48.451385498046875],[27.420211791992188,48.417144775390625],[27.403472900390625,48.411468505859375],[27.38983154296875,48.41497802734375],[27.361404418945312,48.43280029296875],[27.342178344726562,48.43609619140625],[27.305999755859375,48.42364501953125],[27.251922607421875,48.3782958984375],[27.246475219726562,48.37371826171875],[27.208541870117188,48.360595703125],[27.17578125,48.361785888671875],[27.068817138671875,48.38885498046875],[27.04803466796875,48.39764404296875],[27.037384033203125,48.399658203125],[27.026336669921875,48.3970947265625],[27.025405883789062,48.389862060546875],[27.0281982421875,48.381378173828125],[27.027786254882812,48.374755859375],[27.02850341796875,48.37078857421875],[27.031814575195312,48.365234375],[27.033050537109375,48.360198974609375],[27.027679443359375,48.35772705078125],[27.015579223632812,48.359375],[27.004623413085938,48.358734130859375],[26.997802734375,48.361541748046875],[26.990570068359375,48.36236572265625],[26.981063842773438,48.35565185546875],[26.9432373046875,48.35125732421875],[26.908721923828125,48.365234375],[26.875946044921875,48.38397216796875],[26.8427734375,48.39373779296875],[26.831924438476562,48.391357421875],[26.828414916992188,48.3851318359375],[26.82562255859375,48.37774658203125],[26.816940307617188,48.3717041015625],[26.81005859375,48.371856689453125],[26.7935791015625,48.376251220703125],[26.788055419921875,48.375946044921875],[26.777511596679688,48.36614990234375],[26.778182983398438,48.357177734375],[26.784072875976562,48.34515380859375],[26.789337158203125,48.325927734375],[26.790069580078125,48.307037353515625],[26.785720825195312,48.294097900390625],[26.77435302734375,48.28717041015625],[26.754562377929688,48.2861328125],[26.735916137695312,48.29180908203125],[26.723617553710938,48.302581787109375],[26.712966918945312,48.31488037109375],[26.699432373046875,48.325103759765625],[26.679794311523438,48.330169677734375],[26.673995971679688,48.321685791015625],[26.669097900390625,48.308807373046875],[26.636077880859375,48.29486083984375],[26.6251220703125,48.282867431640625],[26.618606567382812,48.267181396484375],[26.617874145507812,48.258941650390625],[26.587387084960938,48.24932861328125],[26.4613037109375,48.230377197265625],[26.444656372070312,48.22772216796875],[26.397430419921875,48.2261962890625],[26.380477905273438,48.22320556640625],[26.347305297851562,48.212066650390625],[26.330245971679688,48.20849609375],[26.311752319335938,48.209716796875],[26.303482055664062,48.2120361328125],[26.296142578125,48.178985595703125],[26.2974853515625,48.15631103515625],[26.286941528320312,48.12469482421875],[26.270721435546875,48.093597412109375],[26.255325317382812,48.07232666015625],[26.24322509765625,48.062896728515625],[26.217071533203125,48.048004150390625],[26.20477294921875,48.037353515625],[26.182662963867188,48.003265380859375],[26.173049926757812,47.993133544921875],[26.125717163085938,47.9783935546875],[26.102523803710938,47.978240966796875],[26.029281616210938,47.977783203125],[25.965728759765625,47.964874267578125],[25.918075561523438,47.9681396484375],[25.901229858398438,47.9659423828125],[25.870956420898438,47.957000732421875],[25.818344116210938,47.95257568359375],[25.75250244140625,47.9345703125],[25.261734008789062,47.8985595703125],[25.218948364257812,47.878448486328125],[25.121902465820312,47.770294189453125],[25.080245971679688,47.74310302734375],[25.080047607421875,47.743072509765625],[25.079940795898438,47.742919921875],[25.017410278320312,47.724578857421875],[24.942367553710938,47.715545654296875],[24.928848266601562,47.71392822265625],[24.9288330078125,47.714324951171875],[24.928482055664062,47.7264404296875],[24.928787231445312,47.731414794921875],[24.932510375976562,47.7540283203125],[24.934051513671875,47.757232666015625],[24.980926513671875,47.828369140625],[24.984649658203125,47.836395263671875],[24.98480224609375,47.840362548828125],[24.984649658203125,47.844390869140625],[24.983718872070312,47.8482666015625],[24.982635498046875,47.85186767578125],[24.980926513671875,47.85516357421875],[24.972976684570312,47.86749267578125],[24.9703369140625,47.8743896484375],[24.969406127929688,47.878143310546875],[24.969406127929688,47.899322509765625],[24.968475341796875,47.903076171875],[24.967239379882812,47.906646728515625],[24.965225219726562,47.90966796875],[24.962890625,47.9124755859375],[24.947860717773438,47.925140380859375],[24.945220947265625,47.92791748046875],[24.94305419921875,47.93084716796875],[24.934829711914062,47.9473876953125],[24.932968139648438,47.9547119140625],[24.931732177734375,47.97100830078125],[24.92755126953125,47.9896240234375],[24.927703857421875,47.99365234375],[24.92816162109375,47.9969482421875],[24.930953979492188,48.0059814453125],[24.934524536132812,48.013427734375],[24.979690551757812,48.070648193359375],[24.984649658203125,48.078857421875],[24.988052368164062,48.096221923828125],[24.989151000976562,48.10015869140625],[24.993484497070312,48.105072021484375],[25.0006103515625,48.110321044921875],[25.017364501953125,48.118560791015625],[25.027587890625,48.12152099609375],[25.046401977539062,48.125],[25.050735473632812,48.12652587890625],[25.054458618164062,48.128570556640625],[25.106292724609375,48.16943359375],[25.116989135742188,48.175048828125],[25.12567138671875,48.1778564453125],[25.1317138671875,48.17822265625],[25.136993408203125,48.17926025390625],[25.140396118164062,48.18170166015625],[25.141326904296875,48.1864013671875],[25.139938354492188,48.189971923828125],[25.135910034179688,48.1964111328125],[25.134201049804688,48.199676513671875],[25.133270263671875,48.20330810546875],[25.132492065429688,48.20721435546875],[25.1328125,48.2156982421875],[25.1334228515625,48.220001220703125],[25.134658813476562,48.223968505859375],[25.136367797851562,48.227569580078125],[25.140869140625,48.23193359375],[25.147735595703125,48.236663818359375],[25.162307739257812,48.244293212890625],[25.176727294921875,48.24957275390625],[25.187896728515625,48.25238037109375],[25.19610595703125,48.2568359375],[25.292633056640625,48.340179443359375],[25.369644165039062,48.38018798828125],[25.406692504882812,48.391510009765625],[25.447357177734375,48.4000244140625],[25.492828369140625,48.4036865234375],[25.513137817382812,48.402862548828125],[25.524765014648438,48.400909423828125],[25.545135498046875,48.39556884765625],[25.554901123046875,48.3916015625],[25.563735961914062,48.38897705078125],[25.569320678710938,48.3883056640625],[25.575057983398438,48.388336181640625],[25.580322265625,48.38995361328125],[25.585128784179688,48.392852783203125],[25.589935302734375,48.3988037109375],[25.59381103515625,48.40692138671875],[25.600372314453125,48.432586669921875],[25.605804443359375,48.521575927734375],[25.604400634765625,48.532379150390625],[25.577682495117188,48.58074951171875],[25.567306518554688,48.60906982421875],[25.564971923828125,48.620941162109375],[25.565444946289062,48.625274658203125],[25.567138671875,48.63055419921875],[25.572418212890625,48.638519287109375],[25.577072143554688,48.643280029296875],[25.58636474609375,48.65069580078125],[25.5985107421875,48.658294677734375],[25.636184692382812,48.6781005859375],[25.648788452148438,48.67144775390625],[25.671173095703125,48.667236328125],[25.715042114257812,48.664459228515625],[25.723007202148438,48.659027099609375],[25.731170654296875,48.635162353515625],[25.742324829101562,48.62969970703125]]]},"properties":{"admin_level":"4","boundary":"administrative","iso3166-2":"UA-77","koatuu":"7300000000","name":"Чернівецька область","name:ar":"تشيرنيفتسي أوبلاست","name:be":"Чарнавіцкая вобласць","name:be-x-old":"Чарнавіцкая вобласьць","name:bg":"Черновицка област","name:ca":"Província de Txernivtsí","name:crh":"Çernivtsi vilâyeti","name:cs":"Černovická oblast","name:de":"Oblast Tscherniwzi","name:en":"Chernivtsi Oblast","name:eo":"Ĉernivca provinco","name:es":"Óblast de Chernivtsi","name:et":"Tšernivtsi oblast","name:eu":"Txernivtsiko oblasta","name:fa":"استان چرنیوتسی","name:fi":"Tšernivtsin alue","name:fr":"Oblast de Tchernivtsi","name:hr":"Černivecka oblast","name:hu":"Csernyivci terület","name:hy":"Չեռնովցիի մարզ","name:id":"Oblast Chernivtsi","name:it":"Oblast' di Černivci","name:ja":"チェルニウツィー州","name:ka":"ჩერნოვცის ოლქი","name:ko":"체르니우치 주","name:lt":"Černivcių sritis","name:lv":"Černivcu apgabals","name:mk":"Черновечка област","name:mr":"चेर्निव्हत्सी ओब्लास्त","name:ms":"Oblast Chernivtsi","name:nl":"Oblast Tsjernivtsi","name:nn":"Tsjernivtsi oblast","name:no":"Tsjernivtsi oblast","name:os":"Черновцыйы облæст","name:pl":"Obwód czerniowiecki","name:pnb":"چرنیوتسی اوبلاست","name:pt":"Oblast de Chernivtsi","name:ro":"Regiunea Cernăuți","name:ru":"Черновицкая область","name:rue":"Чернівецька область","name:sco":"Chernivtsi Oblast","name:sh":"Černivecka oblast","name:sk":"Černovická oblasť","name:sr":"Чернивачка област","name:sv":"Tjernivtsi oblast","name:szl":"Czerńowjecki uobwůd","name:tr":"Çernovtsi Oblastı","name:uk":"Чернівецька область","name:vi":"Chernivtsi (tỉnh)","name:war":"Chernivtsi Oblast","name:zh":"切爾諾夫策州","name:zh-min-nan":"Chernivci séng","type":"boundary","wikipedia":"uk:Чернівецька_область"}}
1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Crimea.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Dnipropetrovsk.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Donetsk.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Ivano-Frankivsk.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Kharkiv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Kherson.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Khmelnytskyy.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Kiev.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Kirovohrad.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Luhansk.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Lviv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Mykolayiv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Odessa.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Poltava.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Rivne.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Sumy.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Ternopil.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions pytools/modules/ukrainemap/resources/Ukraine.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Vinnytsya.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Volyn.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Zakarpattia.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Zaporizhzhya.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytools/modules/ukrainemap/resources/Zhytomyr.json

Large diffs are not rendered by default.

Loading

0 comments on commit 993357e

Please sign in to comment.