Skip to main content
# mdbtools
Python and UNIX CLI utilities to simplify common MongoDB DevOps tasks
Michael S. Noble
mnoble@broadinstitute.org

There are a number of common operations one would like to perform upon
MongoDB databases directly from a UNIX command line, for scalability,
repeatability and automation (e.g. cron jobs). This package makes it very
easy to do that, without having to write or think in Javascript OR sacrificing
choice of what key bindings you may edit with. The package also offers a
simple object framework, which not only maintains a consistent look and feel
amongst all tools, but also makes it very straightforward to add new ones.
To better resonate with the UNIX environment, many utilities in the mdbtools
suite have been given names which reflect UNIX tools of similar purpose. The
suite currently includes:

* mdbcat _display contents of one or more collections, as JSON or TSV/CSV tables_
* mdbcp _copy a collection_
* mdbindex _add/remove indexes to/from a collection_
* mdbload _load a table into a DB_
* mdbls _list the collections in a DB_
* mdbmv _rename (move) a collection_
* mdbquery _issue general purpose key=value queries (with timing info and more, e.g. to assess indexes)_
* mdbrm _remove a collection_
* mdbtouch _create a new, empty collection_
* mdbstats _display summary statistics for one or more collections in a DB_

Some of these tools can be extended in a natural way to operate upon entire databases or server instances, not just collections; this has been considered and may appear in a future release.

Release files for mdbtools 0.3.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdbtools 0.3.14
File Size Uploaded
mdbtools-0.3.14.tar.gz 18.2 kB Details

Release files / mdbtools-0.3.14.tar.gz

Download URL mdbtools-0.3.14.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a6691aeae18413e698ccfb1cc04c1733ceb8be59d81539d08821624f1e6df39a
BLAKE2b-256 checksum
How to use checksums
49826fb0c89e454bd991ed401392d87116fc49e2ce0bfc95586c197ac1ef321e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.14 This release

1 release file

0.3.13

1 release file

0.3.12

1 release file

0.3.11

1 release file

0.3.10

1 release file

0.3.9

1 release file

0.3.7

1 release file

0.3.5

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page