iplib3
ipnetwork
Our great sponsors
iplib3 | ipnetwork | |
---|---|---|
31 | 2 | |
11 | 459 | |
- | - | |
8.7 | 7.6 | |
10 days ago | 20 days ago | |
Python | C# | |
MIT License | BSD 2-clause "Simplified" 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
ipnetwork
- Standardized - Storing IP Addresses
-
CIDR notation validation?
There is a library that can parse IPs in CIDR format: https://github.com/lduchosal/ipnetwork
What are some alternatives?
pytricia - A library for fast IP address lookup in Python.
iplib - A library for working with IP addresses and networks in Go
iplist-youtube - An attempt to list all Youtube IPs at one place.
cidr - CLI to perform various actions on CIDR ranges
python-ms - A Python equivalent to the JavaScript ms package
IPAddress - Java library for handling IP addresses and subnets, both IPv4 and IPv6
5G00EV25-3001_server - The server side of the course communication system project
ip - Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
5G00EV25-3001_client - The client side of the course communication system project
IPTools - PHP Library for manipulating network addresses (IPv4 and IPv6)
sportsipy - A free sports API written for python
ip-num - A TypeScript/JavaScript library for working with ASN, IPv4, and IPv6 numbers. It provides representations of these internet protocol numbers with the ability to perform various IP related operations like parsing, validating etc. on them