sortedcontainers
mongodb-memory-server
Our great sponsors
sortedcontainers | mongodb-memory-server | |
---|---|---|
6 | 9 | |
3,207 | 2,441 | |
- | - | |
7.4 | 9.3 | |
21 days ago | 12 days ago | |
Python | TypeScript | |
GNU General Public License v3.0 or later | 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.
sortedcontainers
-
Ask HN: Where do I find good code to read?
If you like Python, the library sortedcontainers as a clear, well documented, yet short source code that is a joy to read for a non trivial problem:
https://github.com/grantjenks/python-sortedcontainers/blob/m...
-
Blog Post: Large Rust Workspaces
Even the Gentoo package repository manages fine with a two-level hierarchy. There's also a Python library, sortedcontainers, that suggests two-level trees are pretty good at any reasonable human-scale (and beyond), even while fixed-arity trees are asymptotically optimal.
-
Show HN: Mongita is to MongoDB as SQLite is to SQL
It's a good question and to be accurate, depending on the benchmark, Mongita is about the same speed at SQLite to several-times slower.
There is less happening algorithmically than you would think. Where the tricky slow bits do exist, they have largely fallen into the happy-path of fast data structures in the Python language/stdlib. I also use sortedcontainers for indexes which helped quite a bit (http://www.grantjenks.com/docs/sortedcontainers/).
If you're curious, the benchmark code is in the repo: https://github.com/scottrogowski/mongita/blob/master/benchma...
mongodb-memory-server
-
How to test nestjs modules?
In the case of MongoDB there's jest-mongodb that use mongodb-memory-server; for other DBMS, I don't know if it's possible to run an instance in memory.
-
My first project, a Dev.to clone built with MongoDB, Express, React, and Socket.io
The only thing really messing is tests. At work we use https://github.com/nodkz/mongodb-memory-server
-
How to write tests for applications that use MongoDB as a storage
The final method tries to combine both methods, 1 and 2. It uses an external package MongoDB In-Memory Server for our MongoDB.
- Show HN: Mongita is to MongoDB as SQLite is to SQL
-
Setup in-memory database for testing Node.js and Mongoose
I've been working on creating an application using Node.js and Mongoose where all data stored in the cloud MongoDB Atlas. My goal was to test API endpoints and write some unit tests, for that I found this package called mongodb-memory-server, which allows me to create a connection to the MongoDB server from my cache folder without a need to use cloud test database or installing mongodb client.
-
Testing with MongoDB-Memory-Server
In both articles, the authors refer to nodkz's mongodb-memory-server package.
-
MongoDB Animated: Adding and removing elements from arrays
mongodb-memory-server package by @nodkz
What are some alternatives?
mongodb-jest-testing - Tests with jest and mongodb
Docker Compose - Define and run multi-container applications with Docker
python-patterns - A collection of design patterns/idioms in Python
algorithms
TheAlgorithms - All Algorithms implemented in Python
more-itertools - More routines for operating on iterables, beyond itertools
python-ds - No non-sense and no BS repo for how data structure code should be in Python - simple and elegant.
PyPattyrn - A simple library for implementing common design patterns.
indradb - A graph database written in rust
ClointFusion - Cloint India Pvt. Ltd's (ClointFusion) Pythonic RPA (Automation) Platform
mongita - "Mongita is to MongoDB as SQLite is to SQL"
apollo-mongoose-plugin - Apollo GraphQL plugin to add MongoDB query information on the extensions node