Skip to main content

The X-AE-A-12 Python project

Project description

X-AE-A-12

Tests Codecov PyPI Read the Docs License: MIT GitHub repo size Open Source contributors

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

  • 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:

poetry run x-ae-a-12

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:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. 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

github follow twitter follow

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x-ae-a-12-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

x_ae_a_12-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file x-ae-a-12-0.2.0.tar.gz.

File metadata

  • Download URL: x-ae-a-12-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.3.0-1020-azure

File hashes

Hashes for x-ae-a-12-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aa6b05ff3145b002e0b9aa6e5fa5779dfc689d90f3f7cbf75319a64fd3b93e1e
MD5 bbf9b7c663a5ed254e6c06b52c09b5eb
BLAKE2b-256 71c62b7f686d230c5dc150a81362a1f3bc8bee54f308d34ce544eba7d8073c2f

See more details on using hashes here.

File details

Details for the file x_ae_a_12-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: x_ae_a_12-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.3.0-1020-azure

File hashes

Hashes for x_ae_a_12-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dca37b8e8906ad09acdda78f45cb34a8e0e25561cdbc45fb08484f7bd2a564f
MD5 5f967560edb2d2431f61d301eface5ed
BLAKE2b-256 daaf55402dd8c952e65d87221528aea3879b09c32e6b03dea11e55e17d728841

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page