frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: MainyDB – an embedded MongoDB-style database for Python

https://github.com/dddevid/MainyDB
1•ddevid•2h ago
MainyDB is an embedded, file-based database for Python that brings MongoDB-style document storage and querying into a single .mdb file.

It’s lightweight, requires no external server, and works completely offline. You can use it either with its own Pythonic syntax or in PyMongo compatibility mode, meaning you can often switch from MongoDB to MainyDB by simply changing the import.

What It Does

MainyDB stores data in a single .mdb file and allows querying using Mongo-style operators ($gt, $in, $set, etc.) as well as aggregation pipelines ($match, $group, $lookup, ...). It supports async writes, thread-safe access, and can automatically handle binary data like images or videos through base64 encoding.

PyPI: https://pypi.org/project/MainyDB

GitHub: https://github.com/dddevid/MainyDB

Key Features

Single-file storage (no server process)

Two syntax modes: • Own Pythonic syntax • PyMongo compatibility (drop-in style)

Aggregation pipeline support ($match, $group, $lookup, etc.)

Thread-safe with asynchronous file writes

Built-in binary/media storage (auto-encoded)

Works entirely offline

Target Audience

MainyDB is designed for:

Developers building local or embedded Python apps

Prototyping tools, AI experiments, and desktop applications

Automation scripts that need persistent storage

Students and indie developers who want Mongo-style queries without setup overhead

Not intended (yet) for large-scale production systems; the focus is on simplicity, portability, and fast local development.

Comparison Feature MainyDB MongoDB TinyDB SQLite Server required No Yes No No Mongo syntax Yes Yes No No Aggregation pipeline Yes Yes No No Binary/media support Built-in Manual No No File-based Single .mdb No Yes Yes Thread-safe + async Yes Yes Partial Depends

MainyDB aims to bridge the gap between MongoDB’s expressive document model and TinyDB’s simplicity, giving Python developers a true embedded NoSQL option.

Feedback

It’s an early-stage project. I’d love feedback, benchmarks, feature ideas, and critiques. Is this something you’d use for small apps or prototypes?

Repo: https://github.com/dddevid/MainyDB

PyPI: https://pypi.org/project/MainyDB

Downgrading Debian from testing to stable (trixie)

https://neilzone.co.uk/2025/11/downgrading-debian-from-testing-to-stable-trixie/
1•ColinWright•43s ago•0 comments

Germany considers the 'Nordic model' to curb sex work

https://www.dw.com/en/germany-considers-the-nordic-model-to-curb-sex-work/a-74673114
1•toomanyrichies•1m ago•0 comments

Ask HN: How do you get over the fear of sharing code?

2•sodokuwizard•1m ago•0 comments

Value classes are the new data classes

https://curiouslab.dev/0002-value-classes-are-new-data-casses.html
2•todsacerdoti•5m ago•0 comments

Large Language Models Struggle with Reading Clocks

https://spectrum.ieee.org/large-language-models-reading-clocks
1•Anon84•8m ago•0 comments

Lisbon Airport is turning away private jets inbound for the Web Summit

https://www.engadget.com/big-tech/the-lisbon-airport-is-turning-away-private-jets-inbound-for-the...
2•rock_artist•8m ago•0 comments

UK full fibre availability rises to cover 81% of UK premises

https://www.thinkbroadband.com/news/uk-full-fibre-availability-rises-to-cover-81-of-uk-premises
2•ksec•11m ago•0 comments

Managing Your Manager

https://yusufaytas.com/managing-your-manager/
8•yusufaytas•18m ago•0 comments

Comparing GPT-4o vs. GPT-4o-Mini: How Different AI Models Rank the Same Content

https://lightcapai.medium.com/i-used-ai-to-rank-your-articles-b8cc86f691da
3•hadiai•20m ago•1 comments

Trinity Desktop Environment R14.1.5 Released

https://trinitydesktop.org/newsentry.php?entry=2025.11.09
1•calvinmorrison•22m ago•0 comments

Math Books

https://github.com/valeman/Awesome_Math_Books
1•tzury•26m ago•0 comments

Why Wise and Airwallex aren't worried about stablecoins

https://text-incubation.com/why-wise-and-airwallex-arent-worried-about-stablecoins
1•krrishd•26m ago•0 comments

Jelly Slider

https://docs.swmansion.com/TypeGPU/examples/#example=rendering--jelly-slider
1•birdculture•28m ago•0 comments

Show HN: Fast Semantic Tool-filtering for MCP servers

https://github.com/Portkey-AI/mcp-tool-filter
1•roh26it•29m ago•0 comments

Basecamp's Shape Up is a Michelin restaurant brigade system for software

https://itwasjacob.com/posts/michelin-software-teams/
2•Bocajmai•30m ago•3 comments

A Powerful Tool to Override Constitutional Rights Goes to Court

https://www.nytimes.com/2025/11/08/world/canada/a-powerful-tool-to-override-constitutional-rights...
2•Teever•34m ago•1 comments

Show HN: Automate recurring GitHub project items from YAML config

https://github.com/Rindrics/recurring-backlog-item-creator
1•Rindrics•35m ago•0 comments

How this 31-year-old made $250M in 30 months

https://www.ft.com/content/ec749b06-651b-431d-bf0b-5b61c7b5fba0
1•mmarian•36m ago•2 comments

16-Bit Data Pointers on RV32

https://wren.wtf/shower-thoughts/16-bit-data-pointers-on-rv32/
2•todsacerdoti•38m ago•1 comments

Arti, a complete rewrite of the C Tor codebase in Rust

https://tpo.pages.torproject.net/core/arti/about/
3•sibellavia•40m ago•0 comments

Algorithms for Decision Making

https://algorithmsbook.com/decisionmaking/
3•__grob•41m ago•0 comments

Why unions are becoming a problem for self-driving cars

https://www.axios.com/2025/11/05/waymo-unions-boston-self-driving-cars
4•josephcsible•44m ago•3 comments

Bumble Berry Pi – A Cheap DIY Raspberry Pi Handheld Cyberdeck

https://github.com/samcervantes/bumble-berry-pi
4•MakerSam•44m ago•0 comments

Automating image resizing and format conversion with ImageMagick

https://transloadit.com/devtips/automating-image-resizing-and-format-conversion-with-imagemagick/
1•speckx•49m ago•0 comments

Long-Context Attention from Kernel Efficiency to Distributed Context Parallelism

https://arxiv.org/abs/2510.17896
1•PaulHoule•50m ago•0 comments

Marble Fountain

https://willmorrison.net/posts/marble-fountain/
2•chris_overseas•52m ago•0 comments

Bull markets make you feel smarter than you are

https://awealthofcommonsense.com/2025/11/ben-graham-bull-market-brains/
7•raw_anon_1111•53m ago•0 comments

Digital Woes: Why We Should Not Depend on Software (1994)

https://archive.org/details/digitalwoeswhywe0000wien
2•turtleyacht•53m ago•0 comments

AI Isn't Alchemy: Not Mystical, Just Messy

https://www.craftedlogiclab.com/devblog/devblog11092025
1•IanTepoot•54m ago•0 comments

What will it take for AI to change drug discovery?

https://www.writingruxandrabio.com/p/what-will-it-take-for-ai-to-change
1•cjbarber•55m ago•0 comments