escapyde
python-ms
Our great sponsors
escapyde | python-ms | |
---|---|---|
15 | 15 | |
1 | 1 | |
- | - | |
8.8 | 8.8 | |
8 days ago | 10 days 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.
escapyde
-
Hi, I wrote a package that helps to map your Pydantic models between each other.
Personally I split this up even further nowadays into a separate group for tests (such as here).
-
How does import work?
It's a bit too late for me to give a proper explanation right now, but if an example repository is enough: https://github.com/Diapolo10/escapyde
-
Just finished my latest project a GUI for BackgroundRemover library
The established convention is to have metadata files in the repository root, and the project source code nested a level deeper. escapyde would be a fairly simple example of that.
-
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.
-
replace() method
I wrote something similar for escapyde, which could be repurposed to do exactly that. See the escape_format function.
-
Publishing Binary Modules on PyPi
I don't have any Twine examples of my own, but here's one using GitHub Actions to upload files to PyPI: https://github.com/Diapolo10/escapyde
-
Whats next?
Take my escapyde-project as a small example. The README is at least somewhat helpful, the code files are in a dedicated folder while the root just contains metadata, the dependencies are properly listed in pyproject.toml (could be just requirements.txt in your case, if you want to keep things simple), and the code itself is split across multiple files to make it easier to find what you're looking for. Though admittedly I haven't had time to write proper documentation for it.
- Is there a Python library that can automatically change the color of certain words in a PowerPoint slide?
-
How to call functions orderly?
Here's one of my own that's pretty small but decently designed: https://github.com/Diapolo10/escapyde
-
How to share .exe?
While not quite an executable, you can take a look at my escapyde library as an example. In every release I've bundled in a pre-compiled wheel (analogous to your executable), and a source distribution. Anyone can freely download any of these.
python-ms
-
Sleekiest Python Trick you know.
Traditionally, you import a package and then use things from it to do a task. However, it is actually possible to have the import itself do stuff; I used this technique in python_ms to replicate the original JS module down to its import. And fuckit did it way before that.
-
What's the best way to manage Python versions and environments for a beginner on mac?
As a side note, if you use GitHub Actions or a similar CI/CD system, you can use a matrix or equivalent to create builds or run tests on various different operating systems and Python versions, so you might not even need to worry about running multiple Python versions locally. For example, I use that to build releases for multiple platforms, and to run comprehensive test suites in all configurations.
-
Importing modules
At first I considered this one, but since it does some funky stuff with sys.path I figured that might confuse you if you started to follow everything to the letter. Otherwise it would probably be more suitable.
-
I`ve created my first project on GitHub
I don't really have any simple project examples that use databases (the closest thing would be a certain server project, which is probably too complex for you right now), but to showcase project structure I can suggest python_ms.
-
Wordle Solver package for fun/practice, would really appreciate any feedback or suggestions!
I'm also rather fond of GitHub Actions, so I'd create additional scripts for Dependabot updates and some linters/Black to automatically run on every push/pull request. Maybe even automating the PyPI publishing process via Git version tags, and adding releases to GitHub. For that, I believe python_ms is a decent example.
-
Coding Project Review
First impressions; I kinda wish the code was in its own subdirectory as generally speaking the repository root is for metadata files/build scripts only. This project will probably serve as a decent example of that.
-
Python Library Upload
I also recommend at least looking into letting a CI/CD pipeline handle this for you (for example GitHub Actions) because that way you don't need to expose your API key in the repository, or risk committing secrets in general. As an example, here's my Actions script for uploading new python-ms releases.
-
My first project is a mess!
Having a pretty README also can't hurt, I'm particularly proud of this one: https://github.com/Diapolo10/python-ms/blob/main/README.md
-
Design patterns and structure of source files
As far as examples go, I think my EguiValet server project might suffice for this one. It's probably a bit bigger than whatever you're working on, but python_ms would probably be too bare-bones in this case.
-
Publishing to PyPI via GitHub Action
If you want an example, python_ms will probably work. I decided to publish on merged pull requests to main instead of waiting for tags (I should probably change that in my template by now), and it's using Poetry, but it's my smallest project that's easy enough to follow in a short time.
What are some alternatives?
bg-remover-GUI - A Tkinter GUI for BackgroundRemover
RuneScore - A script that pulls a RuneScape player's stats from Jagex' servers, and outputs a HTML file containing them.
pymapme - Easy mapping for Pydantic models
rcoc - Random country, city name generator
Tsukasa-credit-card-gag-scam - A script I made to resemble a joke video I saw on reddit ( https://www.reddit.com/r/luckystar/comments/m8p9ul/tsukasa_wants_your_credit_card_info/ )
DBMS
blackjack - blackjack with sign in
iplib3 - A pathlib.Path equivalent for IP addresses.
5G00EV25-3001_server - The server side of the course communication system project
gh-action-pypi-publish - The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI: https://github.com/marketplace/actions/pypi-publish
schedule-generator