Simple template API for Discord rich presence!
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RPCLayout-2.1.3.tar.gz.
File metadata
- Download URL: RPCLayout-2.1.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e23665268787f6e50ea9065004c76c22a8480ec0c14f9872c47ea159ef2438f
|
|
| MD5 |
9c60ef08d3e783a5e1ee474b8f0c1d3f
|
|
| BLAKE2b-256 |
d2c1ba368677ee2685ab81fe1961b9d57d223d9959c305ada0592da8cd7d0ef6
|
File details
Details for the file RPCLayout-2.1.3-py3-none-any.whl.
File metadata
- Download URL: RPCLayout-2.1.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
239cdf8386e70c032b44544d41a628c84eeb6f9cf5a460a8663e0b7a111b507f
|
|
| MD5 |
d9a63ebd86a7c850e6735a74b32c8159
|
|
| BLAKE2b-256 |
0a12e6fd2474d9f1be01d0ff55816ef48300aa8af654fa024a56cb0fbe74452a
|