Small CLI to fetch the EnArgus Wiki
Project description
EnArgusWiki
This is a small CLI to retrieve data from the EnArgus Wiki.
Installation
This tool is on PyPI, so you can easily install it with
pip install enarguswiki
[! NOTE] Only tested on MacOS. Should work on other platforms as well.
Usage
Search for something
You can search for something in different languages.
> enarguswiki search sun --language EN
Search results for 'sun' in EN
┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ObjectID ┃ Name (EN) ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 2120759 │ Radiation intensity of the sun │
│ 2121098 │ diurnal cycle of the sun │
│ 2119926 │ Sun sensor │
└──────────┴────────────────────────────────┘
Get a page
> enarguswiki page --query "Sun sensor" --language EN
┌────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Object ID: │ 2119926 │
├────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Language: │ en │
├────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Name: │ Sun sensor │
├────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Content: │ A sun sensor determines the radiation intensity of the sun and/or the azimuth angle of a solar power │
│ │ plant. Sun sensors are used in the design and automatic tracking of a solar power plant. The data │
│ │ determined by the sun sensor is used to either rigidly position the solar collectors or solar modules │
│ │ in the most advantageous position during installation or to align them optimally towards the sun with │
│ │ the help of a tracking system. │
│ │ Solar sensors can also be used in the monitoring system of a photovoltaic system. In these systems, │
│ │ they are used to record the irradiated solar power and enable a comparison with the yield of the │
│ │ system. │
│ │ Synonym(s): │
│ │ radiation sensor, irradiation sensor, solar sensor, photosensor, photosensor, detector, radiation │
│ │ meter, light meter │
│ │ German translation(s): │
│ │ Sonnenlichtmesser, Photosensor, Lichtsensor │
└────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Or you can search by the dokument ID:
>enarguswiki page --oid 2119926
┌────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Object ID: │ 2119926 │
├────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Language: │ en │
├────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Name: │ Sun sensor │
...
Pages can be exported to PDF:
> enarguswiki page --oid 2119926 --format pdf --out out.pdf
This will print a basic pdf:
Exporting to JSON is possible as well.
Get a collection
You can completely dump the Wiki by running
> enarguswiki collection --language EN --update all
Updating pages... ╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2% 0:05:30
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
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 enarguswiki-0.2.0.tar.gz
.
File metadata
- Download URL: enarguswiki-0.2.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8418ce557aa70b27202d29143f5813e37f2f950296bd1b47538770d24a4a70 |
|
MD5 | ca9694c50ba8a9deb4572e5dc743dba5 |
|
BLAKE2b-256 | 89480e2f4682c64a9eb36a5940b0470a179fadbedc0eb06f5c23457fda6a9b5e |
File details
Details for the file enarguswiki-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: enarguswiki-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 688311b03378c7bb24138788adac92c331ec6997887d5c1709e9ebb01bf20060 |
|
MD5 | e26eec66fc3ea4bb401c4c6f0ccde451 |
|
BLAKE2b-256 | d8ec8819886d3a1298365df889c6bd209a1866bb094bc67468ee11021e827a6b |