semvec/pypi-packages huggingface dataset:
snakypy-helpers 0.3.1
Snakypy Helpers is a package that contains code ready to assist in the development of packages/applications so as not to replicate the code.
License: MIT
Requires Python: >=3.9,<4.0
Keywords: snakypy,helpers,linux

================
Snakypy Helpers
================

.. image:: https://github.com/snakypy/snakypy-helpers/workflows/Tests/badge.svg
    :target: https://github.com/snakypy/snakypy-helpers
    :alt: Tests

.. image:: https://img.shields.io/pypi/v/snakypy-helpers.svg
    :target: https://pypi.python.org/pypi/snakypy-helpers
    :alt: PyPI - Snakypy Helpers

.. image:: https://img.shields.io/pypi/wheel/snakypy-helpers
    :target: https://pypi.org/project/wheel/
    :alt: PyPI - Wheel

.. image:: https://img.shields.io/pypi/pyversions/snakypy-helpers
    :target: https://pyup.io/repos/github/snakypy/snakypy-helpers/
    :alt: Python versions

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Black

.. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
    :target: https://pycqa.github.io/isort/
    :alt: Isort

.. image:: http://www.mypy-lang.org/static/mypy_badge.svg
    :target: http://mypy-lang.org/
    :alt: Mypy

.. image:: https://readthedocs.org/projects/snakypy-helpers/badge/?version=latest
    :target: https://snakypy-helpers.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://pyup.io/repos/github/snakypy/snakypy-helpers/shield.svg
    :target: https://pyup.io/repos/github/snakypy/snakypy-helpers/
    :alt: Updates

.. image:: https://img.shields.io/github/contributors/snakypy/snakypy-helpers
    :target: https://github.com/snakypy/snakypy-helpers/blob/master/CONTRIBUTING.rst
    :alt: Contributors

.. image:: https://img.shields.io/github/issues-raw/snakypy/snakypy-helpers
   :target: https://github.com/snakypy/snakypy-helpers/issues
   :alt: GitHub issues

.. image:: https://img.shields.io/github/license/snakypy/snakypy-helpers
    :target: https://github.com/snakypy/snakypy-helpers/blob/master/LICENSE
    :alt: Github License


Snakypy Helpers is a package that contains code ready to assist in the development of Snakypy projects,
so as not to replicate the code.


Donation
--------

Click on the image below to be redirected the donation forms:

.. image:: https://raw.githubusercontent.com/snakypy/donations/master/svg/donate/donate-hand.svg
    :width: 160 px
    :height: 100px
    :target: https://github.com/snakypy/donations/blob/master/README.md

License
--------

The project is available as open source under the terms of the `MIT license`_ © William Canin

Credits
--------

See in `AUTHORS`_.

Links
-----

* Code: https://github.com/snakypy/snakypy-helpers
* Documentation: https://snakypy-helpers.readthedocs.io
* Releases: https://pypi.org/project/snakypy-helpers/#history
* Issue tracker: https://github.com/snakypy/snakypy-helpers/issues

.. _MIT license: https://github.com/snakypy/snakypy-helpers/blob/master/LICENSE
.. _AUTHORS: https://github.com/snakypy/snakypy-helpers/blob/master/AUTHORS.rst
beaudis 0.2.0
Adds custom CSS support to Discord.
License: MIT

uploaded by TheAmmiR for personal use
I don't claim anything, the work was done by @leovoel and contributors

BeautifulDiscord
================

Simple Python script that adds CSS hot-reload to Discord.

![demo gif](http://i.imgur.com/xq4HS5f.gif)

## Motivation

I wanted custom CSS injection for Discord, with no JavaScript add-ons or anything.
That's BeautifulDiscord.

If you want JS, you can either:
- Use [BetterDiscord](https://github.com/Jiiks/BetterDiscordApp)
- Make your own thing!

You could also fork this repo and add it, it's not that big of a stretch.
I just didn't add it because it's not what I want to do here.

## Usage

Just invoke the script when installed. If you don't pass the `--css` flag, the stylesheet
will be placed wherever the Discord app resources are found, which is not a very convenient
location.

**NOTE:** Discord has to be running for this to work in first place.
The script works by scanning the active processes and looking for the Discord ones.

(yes, this also means you can fool the program into trying to apply this to some random program named Discord)

```
$ beautifuldiscord --css C:\mystuff\myown.css
0: Found DiscordPTB.exe
1: Found DiscordCanary.exe
Discord executable to use (number): 1

Done!

You may now edit your C:\mystuff\myown.css file,
which will be reloaded whenever it's saved.

Relaunching Discord now...
$
```

Pass the `--revert` flag to restore Discord to its initial state. You can also do this manually if your Discord
install gets screwed up, by first locating where Discord stores its resources:

- On Windows, it's `C:\Users\<username>\AppData\Roaming\discord[ptb,canary]\<version>\modules\discord_desktop_core`
- On OSX, it's `~/Library/Application Support/discord[ptb,canary]/<version>/modules/discord_desktop_core`
- On Linux, it's `~/.config/discord[ptb,canary]/<version>/modules/discord_desktop_core`

(`<...>` means it's required, `[...]` means it's optional)

In that folder, there should be four files, with `core.asar` and `original_core.asar` being the interesting ones.
You should then remove the existing `core.asar` and rename `original_core.asar` to `core.asar`.

```
$ beautifuldiscord --revert
0: Found DiscordPTB.exe
1: Found DiscordCanary.exe
Discord executable to use (number): 1
Reverted changes, no more CSS hot-reload :(
$
```

You can also run it as a package - i.e. `python3 -m beautifuldiscord` - if somehow you cannot
install it as a script that you can run from anywhere.

## Installing

```
python3 -m pip install -U https://github.com/leovoel/BeautifulDiscord/archive/master.zip
```

Usage of a virtual environment is recommended, to not pollute your global package space.

## Requirements

- Python 3.x (no interest in compatibility with 2.x, untested on Python 3.x versions below 3.4)
- `psutil` library: https://github.com/giampaolo/psutil

Normally, `pip` should install any required dependencies.

## More GIFs

![demo gif](http://i.imgur.com/w0bQOJ6.gif)