The projects we write in Python
Projects from the portfolio and the case studies, each with a short note on what this language does in it.
-
VulCode Discord bot discord.py, aiohttp and Playwright.See the project -
Ops scripts Infrastructure diagnostics and housekeeping.See the project
-
pixel-platformer A 2D platformer.See the project -
Monitoring FastAPI, service checks and Discord alerts.See the project
-
webhook-proxy One address instead of fourteen webhooks, a queue per webhook.See the project
-
DualFroz: notes sync Entries from Discord to the site.See the project - mailcheck A Discord bot for account handling, with a blocklist and stats.
When we choose it, and when we do not
Where we use it
- 01
Discord bots
The VulCode bot runs on discord.py and aiohttp, and takes page screenshots and checks through Playwright. A new command is added and deployed with no build.
- 02
Ops scripts
Infrastructure diagnostics and housekeeping are Python scripts. The interpreter is on every Linux box, so a script runs as soon as it is copied to a server.
- 03
Monitoring with alerts
The FastAPI monitoring checks services and sends alerts to Discord. FastAPI describes the API with types, and the documentation comes straight from them.
- 04
Services with no dependencies
webhook-proxy gathers Discord webhooks under one address and keeps a separate queue for each, so a clogged alerts channel does not block payment notices. It runs on the standard library alone, with no pip.
- 05
Sync between services
Entries from Discord reach the DualFroz site through a short sync script. Code that joins two APIs is quickest to write and fix in Python.
- 06
Tasks handled on Discord
mailcheck handles accounts from inside Discord, with a blocklist and stats. The team deals with small matters in the chat, with no separate panel.
When we choose something else
- 01
A browser interface
We write panels and sites in TypeScript and React. Python can serve the API for such a panel, but we do not build its screens in Python.
- 02
A service with very heavy traffic
By default Python runs code on one CPU core at a time because of the GIL, its global interpreter lock. We write a service that must handle heavy traffic on a small machine in Go.
- 03
A program installed at the client's
A program on someone else's machine should not need the right Python version and packages. Go and Rust give one binary that simply runs.
- 04
A core with money
Python type hints are not checked at run time, so a wrong type slips through until the code runs. We keep billing code in Rust, where such a mistake does not compile.
- 05
A bot for a JavaScript team
The Aphrodi bots are in JavaScript and TypeScript with discord.js, because the team developing them knows that ecosystem. We choose a bot's language for the people who will change it.
- 06
A phone or desktop app
For phones we write in Kotlin and Swift, for desktops in C# with Avalonia or Rust with Tauri. Python offers neither a native interface nor simple distribution there.
Python or something else
A technology has to fit the place the code will run and the team that will take it over. The final choice is made in the quote, together with you.
| Task | Python | Another language |
|---|---|---|
| Discord bot | discord.py, quick to start | TypeScript with discord.js is good too |
| A server script | present on every Linux | Go, when it should be one file |
| A browser panel | no | TypeScript and React |
| A monitoring API | FastAPI with docs from the types | TypeScript, when the API shares types with a panel |
| Syncing two APIs | a short script, ready quickly | more code in a compiled language |
| A service for heavy traffic | held back by the GIL | Go on every core |
| A program installed at the client's | needs Python and packages | Go or Rust, one binary |
The libraries these projects stand on
From the dependency files of our repositories. With each, one sentence on what we use it for.
-
discord.pyDiscord bots -
aiohttpHTTP requests in bots -
FastAPI and uvicornthe monitoring API -
Playwrightpage screenshots and checks from a bot
Our changes to other people's Python projects
7 changes in 6 projects. The maintainers of these projects reviewed our code and merged it into theirs.
Frequently asked questions
Answers about Python and our projects.
- How much does a custom Discord bot cost?
- A Discord bot starts at PLN 99 (about EUR 22) and an automation or integration in Python at PLN 999 (about EUR 220). A simple bot or integration usually takes 2-3 days.
- What do you write Discord bots in: Python or JavaScript?
- Both. Our VulCode bot is in Python, the Aphrodi bots in JavaScript and TypeScript. We choose the language for whoever will develop the bot.
- Do you fix Python libraries?
- Yes, we have changes merged into funcy, python-benedict, pydash and pydantic-extra-types among others.