iplib3
RPGenie
Our great sponsors
iplib3 | RPGenie | |
---|---|---|
31 | 6 | |
11 | 28 | |
- | - | |
8.7 | 0.0 | |
10 days ago | over 2 years ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iplib3
-
Blackjack project review
Instead of keeping all the code at the repository root, maybe consider a more traditional project structure. As far as examples go, I've got this for an executable, and I think this works for a more complex project.
-
Relative importing from another directory. No known parent package.
What that means in practice, I have yet to figure out how to explain in the simplest way possible, but perhaps an example repository might help somewhat. The details more or less boil down to
-
A tip I just taught myself
First, some values simply never change. For example, my iplib3 has plenty of hard-coded constants set by the IPv4 and IPv6 specifications and there's no need to have those in some external config file because, again, unless the standard gets updated those are constant.
-
I’ve been struggling with organizing projects and utilizing classes so I’ve been looking for public projects I can study
I haven't touched this codebase in a while (although I really should), but it serves as one of my better examples for object-oriented programming. It's reasonably large, yet meticulously linted: https://github.com/Diapolo10/iplib3
-
Help with importing custom packages
I don't have any projects using setuptools anymore so unfortunately I can't give an example for that, but if Poetry is fine then iplib3 will probably suffice. Focus on the imports and the project structure, and maybe pyproject.toml, everything else is just noise.
-
Begginer learning Python
Well, my GitHub profile is part of my flair in this subreddit, feel free to dig around. My latest project was an attempt to port the ms JavaScript library to Python, and I think I did alright. Other things I can highlight would be my iplib3 package, a server implementation for the EguiValet messaging service, and finally I've got a fairly unfinished text colouring utility called escapyde.
-
Suggest me so GitHub repositories
And iplib3 could use some cleanup, such as redesigning the inheritance to add support for seamless conversion between all supported types. The documentation should also be written as right now there's basically nothing.
-
Casino Craps Game - Code critique and project help
You could maybe take a look at my iplib3 project for some examples. Alternatively, the EguiValet server project should be fine too.
-
Are there some rules that state how code for python module should look like?
While I have a very recent project that would otherwise be a perfect example, it does something a bit unusual with imports so I'll instead use iplib3 as an example, even though I haven't had time to work on it lately.
-
How to write 'helloworld'-level unit tests?
The Pytest documentation does a much better job at explaining how this works in practice than I ever could. I don't have any super simple example repositories, but iplib3 might work: https://github.com/Diapolo10/iplib3/blob/main/tests/test_address.py
RPGenie
-
Module not found Error in Python.
But if all you care about is getting something working ASAP, regardless of whether it's actually a good idea or not, you can use sys.path.insert to help your code find what it needs. I've deliberately not fixed the package yet because I use it as an example for this scenario. I don't recommend this, but I want to show you the options you have anyway.
-
printing objects Java vs Python
I made something like that once as a mixin.
-
I'm lost "no module named...", how importing works?
For option 2, you can see an example in this old project of mine: https://github.com/Diapolo10/RPGenie/blob/master/tests/test_classes.py
-
How to import module from sibling directory?
Source: https://github.com/Diapolo10/RPGenie/blob/master/tests/test_classes.py
-
[Python] Test file cannot find my module
At one point I had the same problem and did a dirty workaround by abusing sys.path.insert to do the dirty deeds for me, but that's not a good approach. Nowadays I use pytest by running py -m pytest tests in the project's root directory, or at least something similar to that - technically it all goes through Poetry and its virtual environment.
-
When to Use Class Methods vs. Functions?
Another, much older example that may demonstrate the idea a little better: https://github.com/Diapolo10/RPGenie/blob/master/src/mixins.py
What are some alternatives?
pytricia - A library for fast IP address lookup in Python.
buutti_maze_solver - A solver for two mazes
iplist-youtube - An attempt to list all Youtube IPs at one place.
UCALC - UCALC (Ultimate Calculator) is an advanced Python-based calculator that was my first major Python project.
ipnetwork - IPNetwork command line and C# library take care of complex network, IP, IPv4, IPv6, netmask, CIDR, subnet, subnetting, supernet, and supernetting calculation for .NET developers. It works with IPv4 as well as IPv6, is written in C#, has a light and clean API, and is fully unit-tested
Dead-End - This is a zombie survival game where you must make the best choices and decisions possible in order to live. As a survivor, you will encounter zombies, weapons, people, and a merchant to buy from with an in-game currency. Every decision you make has a cause and effect while some lead you to fortune and others lead you to death.
python-ms - A Python equivalent to the JavaScript ms package
5G00EV25-3001_server - The server side of the course communication system project
5G00EV25-3001_client - The client side of the course communication system project
sportsipy - A free sports API written for python
subnet-watcher - AWS VPC Subnets Watcher
django-phonenumber-field - A django model and form field for normalised phone numbers using python-phonenumbers