RPCLayout
A simple way to make a Discord rich presence with API using JSON parser to make it. Includes a multiple functions to help in the development with apis json
** RPCLayout Stop in Last Build v2.0.3, no more updates until 21/03/22. Reason: Making web for documentation. **
Installation
Simple as possible use:
python -m pip install RPCLayout
or clone code and use at module.
Versions - Stable
Version 2.1.3
- Added a functions to returns macs with m1 chip, use _system() or _isM1()
Small changes in
__test__class.
See it in https://pypi.org/project/RPCLayout/2.1.3/
Version 2.0.3
- Fixed _checkGameIsClosed(), now recieves a string. Usage:
myGame = "CSGO.exe"
while True: # main loop
if _checkGameIsClosed(myGame) is True: # if the Game is closed returns True
destroy(rpc, text="Game Exiting... RPC Disconnected.") # called destroy() function for destroy the rpc and process.
time.sleep(60) # loop 60 s (ideal 5 seconds)
See it in https://pypi.org/project/RPCLayout/2.0.3/
Version 2.0.2
- Fixed _waitingForGame() function, now recieve a string and complete the loop if found the game. Usage:
myGame = "CSGO.exe" # depending operative system
_waitingForGame(myGame) # If found it, the code will continue. If not check your game variable.
# and continue the code...
while True:
...
__test__class- Fixed callback_os(), change parameters
- Can import as:
import RPCLayout.__test__
See it in https://pypi.org/project/RPCLayout/2.0.2/
Version 2.0.1
- Added:
__test__class for test functions.- _system() - Return the operating system
- _getpid() - Return the actual PID of the program
- destroy() - Destroy the actual process and RPC.
- Added more HTTP Responses Error for request_api() function
See it in https://pypi.org/project/RPCLayout/2.0.1/
Version 2.0.0
Bugs fixed, import fixed for MacOS
See it in https://pypi.org/project/RPCLayout/2.0.0/
Repositories Used
Why?
I want to make more simple or easier to make an Discord Rich Presence with API.JSON, this idea born in my another project: RotMGRPC meanwhile i was thinking how to make this process more faster or simple.
Yeah, it's a totally random idea but here i am
Requires:
pip install requests
Metadata
Release files for RPCLayout 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| RPCLayout-2.1.3.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| RPCLayout-2.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / RPCLayout-2.1.3.tar.gz
| Download URL | RPCLayout-2.1.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e23665268787f6e50ea9065004c76c22a8480ec0c14f9872c47ea159ef2438f
|
|
BLAKE2b-256 checksum How to use checksums |
d2c1ba368677ee2685ab81fe1961b9d57d223d9959c305ada0592da8cd7d0ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / RPCLayout-2.1.3-py3-none-any.whl
| Download URL | RPCLayout-2.1.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
239cdf8386e70c032b44544d41a628c84eeb6f9cf5a460a8663e0b7a111b507f
|
|
BLAKE2b-256 checksum How to use checksums |
0a12e6fd2474d9f1be01d0ff55816ef48300aa8af654fa024a56cb0fbe74452a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|