Genshin, but no Genshin.
Project description
nogenshin
Are you a developer who's tired of seeing the same boring errors in your code? Want to turn debugging into an adventure? Look no further—nogenshin is here to save the day (and your sanity)!
What is nogenshin?
nogenshin
is the Python library that transforms your coding errors into epic, open-world fun. Say goodbye to stack traces and hello to Teyvat! When your code blows up, any function wrapped with @nogenshin.start
will launch Genshin Impact and whisk you away from debugging woes.
And that's not all! With the new @nogenshin.stop
in v0.2.0
, you can finally stop Genshin when your bugs are getting serious. Yes, you can bring yourself back from your virtual world (but let’s be real, why would you want to?).
Installation
Get ready to face your coding challenges head-on (or ignore them while playing Genshin):
pip install nogenshin
# Or, if you're feeling extra adventurous (or have Paimon-like energy):
pip install git+https://github.com/Charley-xiao/nogenshin.git
Note: Genshin Impact must be installed on your system. If it’s not, we can't help you there. Go download it first—priorities, people!
Usage
The @nogenshin.start Experience™️
import nogenshin
@nogenshin.start
def buggy_function():
print("Hold on, this will break...")
raise ValueError("Oops!")
buggy_function() # Time to journey into Teyvat!
When an error occurs, instead of frantically debugging, nogenshin will take you on a nice relaxing trip to the world of Genshin. Perfect timing to roll for a new 5-star character or just go vent your frustration on some slimes.
The @nogenshin.stop Superpower
For when you actually need to, you know, stop playing Genshin (tragic, I know):
@nogenshin.stop
def stop_playing():
print("This code has issues... stopping Genshin Impact.")
raise RuntimeError("Time to get serious!")
stop_playing() # Back to reality (but why?)
When your code crashes again and you realize maybe you should actually fix something, @nogenshin.stop
will gasp close Genshin Impact. Yes, I know. It’s painful. But debugging is hard work, and eventually, someone’s got to do it.
Why?
Because life is short, and debugging is long. Why face your errors alone when you could have Paimon by your side?
How It Works
- Write code (preferably the kind that works).
- Wrap your error-prone functions with
@nogenshin.start
or@nogenshin.stop
(because who needs normal debugging?). - When an exception happens, Genshin Impact either starts or stops.
- Embrace the chaos.
- Profit (or suffer in silence).
FAQ
Q: Will this help me fix my code?
A: Absolutely not. But you’ll feel better about your life choices.
Q: Why Genshin Impact?
A: Why not? Coding errors deserve to be met with an epic game, don’t they?
Q: What if I actually want to fix my bugs?
A: That’s between you and your error logs. Best of luck.
Q: Can I choose a different game?
A: Technically, yes. Set the GENSHIN_PATH
environment variable to the path of any executable game. But honestly, why would you want to play something else?
Q: How can I prevent Genshin from starting/stopping?
A: Why would you even ask that?
Disclaimer
This library is not guaranteed to improve your coding skills. It may reduce productivity by introducing distractions, but will likely enhance your overall mood (especially after you finally get that 5-star pull). Use at your own risk, and don't blame us if you lose track of time and end up adventuring instead of debugging.
nogenshin: Turning your code errors into an adventure, one bug at a time. Now go out there and either code… or lose yourself in Genshin Impact. Your call.
License
MIT © Charley Xiao
Contributing
Issues and pull requests are welcome! Feel free to contribute and join the madness! 😊
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
File details
Details for the file nogenshin-0.2.0.tar.gz
.
File metadata
- Download URL: nogenshin-0.2.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbf5f4b060564f001773ec11ed5ea688f4ee6ab3fb78071892be6a796c323819 |
|
MD5 | f6cb1ef9b5c49e818d0b0ccbdb7f8522 |
|
BLAKE2b-256 | 906bc5fb6477606d1c0b6c4c4e85fa08d3933772d1621123dc3ffd2da810a722 |
File details
Details for the file nogenshin-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nogenshin-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde9b5c731d5479be82f158f4b5162c189c6e73edd089fdb19c59297bb114957 |
|
MD5 | 3710dc22cc9bc5c50a89100e09dfdad9 |
|
BLAKE2b-256 | 40b91bc055b97335ca59611045f58c67d6a33da456ca9cb1152199d68aee5a63 |