X-AE-A-12
Command line application for displaying random facts from wikipedia on the console. Available as a python package on PyPI:
pip install x-ae-a-12
Documentation available at: X-AE-A-12 docs
Table of contents
- Built With
- Features
- Code Example
- Prerequisites
- Installation
- Tests
- Deployment
- Contributions
- Bug / Feature Request
- Authors
- License
Built With
- Python 3.8 - The programming language used.
- Poetry - The dependency manager used.
- Nox - The automation tool used.
- Pytest - The testing framework used.
- Flake8 - The linting tool used.
- Sphinx - The documentation generator used.
- GitHub Actions - CI-CD tool used.
Features
- Display random facts from Wikipedia.
- Select Wikipedia language edition to be used.
Code Example
def main(language: str) -> None:
"""The X-AE-A-12 Python project."""
page = wikipedia.random_page(language=language)
click.secho(page.title, fg="green")
click.echo(textwrap.fill(page.extract))
Prerequisites
What things you need to install the software and how to install them
- python 3.8
Linux:
sudo apt-get install python3.8
Windows:
Download from python.org
Mac OS:
brew install python3
- pip
Linux and Mac OS:
pip install -U pip
Windows:
python -m pip install -U pip
- poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- nox
pip install --user --upgrade nox
Installation
Clone this repository:
git clone https://github.com/SpencerOfwiti/X-AE-A-12
To set up virtual environment and install dependencies:
poetry install
To run application (by default the English language edition is selected):
poetry run x-ae-a-12
To run Swahili language edition:
poetry run x-ae-a-12 -l sw
Tests
This system uses pytest to run automated tests.
To run automated tests:
nox -s tests
Deployment
To deploy application on PyPI(Python Package Index):
poetry build
poetry publish
Contributions
To contribute, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>. - Make your changes and commit them:
git commit -m '<commit_message>' - Push to the original branch:
git push origin <project_name>/<location> - Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
Bug / Feature Request
If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issue here by including your search query and the expected result.
If you'd like to request a new function, feel free to do so by opening an issue here. Please include sample queries and their corresponding results.
Authors
- Spencer Ofwiti - Initial work
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for x-ae-a-12 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x-ae-a-12-0.2.1.tar.gz | 5.7 kB | Without provenance | Details for x-ae-a-12-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x_ae_a_12-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for x_ae_a_12-0.2.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / x-ae-a-12-0.2.1.tar.gz
| Download URL | x-ae-a-12-0.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0188fe0b2062bb5a651de78f155643ba122e1001b8c549dae7d784895aa134e4
|
|
BLAKE2b-256 checksum How to use checksums |
32d62ec359f2b4b138d47783b31626ad22c778da470e13d8fce4ce9e180ee5d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.3.0-1020-azure
|
Release files / x_ae_a_12-0.2.1-py3-none-any.whl
| Download URL | x_ae_a_12-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3c59f7a82b5c5c4bd10f0d1e673f9da15d7e73e3eebd82549e4ad42d813baf6
|
|
BLAKE2b-256 checksum How to use checksums |
46fad0681e9a829a85ab7d81b31a35b8a422770f845606f411b426b5835e0d0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.3.0-1020-azure
|
Security for x-ae-a-12 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.