Metadata-Version: 2.1
Name: ismeowix
Version: 0.4
Summary: Library for Meowix Python applications to check if the intended operating system is being used
Home-page: https://github.com/Meowix-Linux/python-ismeowix
Author: Nekosis
Project-URL: Bug Tracker, https://github.com/Meowix-Linux/python-ismeowix/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

<p align="center">
    <img src="https://github.com/Meowix-Linux/Meowix-ISO/blob/main/assets/meowix.svg?raw=true" width=25% height=25%>
</p>

<h1 align="center">Python Library: ismeowix</h1>

<p align="center">Library for Meowix Python applications to check if the intended operating system is being used</p>

<p align="center">
    <a href="https://www.gnu.org/licenses/gpl-3.0.en.html"><img alt="GPLv3 License" src="https://img.shields.io/badge/License-GPLv3-red.svg"></a>
</p>

## Installation

**NOTE: Information in this section is currently inaccurate! Please give us some time to get the packages uploaded and sorted out before following these steps.**

You may either install a pre-built version of the package or build it yourself.

### Downloading a pre-built package

Pre-built packages are available on [PyPI](https://pypi.org/project/ismeowix) (for Windows and macOS) and in [Meowix-Repo](https://github.com/Meowix-Linux/Meowix-Repo).

### Building the package manually

To build the package manually, follow these steps:

1. Install needed dependencies:

```bash
sudo pacman -S --needed python python-build python-colorama python-distro
```

3. Clone this repository:

```bash
git clone https://github.com/Meowix-Linux/python-ismeowix.git
```

3. Navigate to the repository directory:

```bash
cd python-ismeowix
```

4. Build the package:

```bash
python -m build
```

After the above command finishes, there should be package files in the `dist/` directory.

*Looking for the `pacman` version of this package? That's in [python-ismeowix-PKGBUILD](https://github.com/Meowix-Linux/python-ismeowix-PKGBUILD).*

## Usage in Python

The library is intended to check if the operating system being used is Meowix Linux. If it is not, it will exit, displaying an error.

First, import the package:

```python
import ismeowix
```

Then call the check function (usually at the very beginning of a given script):

```python
ismeowix.check()
```

## License

This repository is licensed under the [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.en.html). If you have found that Meowix has violated any licenses or copyrights, please don't hesitate to open an issue on the repository/repositories that do so, and we will do our best to respond in a timely manner.
