Code Monkey home page Code Monkey logo

python-iavl's Introduction

python-iavl implements iavl tree in python, and provides a cli tool to inspect the cosmos-sdk application db, can be used for debugging production issues, or doing fast rollback.

The cli tool can be run as nix flake on the fly, there are two exposed app, the iavl-cli(the default one) is for rocksdb db backend, the iavl-cli-leveldb is for goleveldb backend.

$ nix run github:crypto-com/python-iavl/$GIT_REF#iavl-cli -- --help
Usage: iavl [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  commit-infos           print latest version and commit infos of...
  diff-fastnode          compare fast node index with latest iavl tree...
  dump-changesets        extract changeset by comparing iavl versions and...
  fast-node              print the content of a fast node
  fast-rollback          A quick and dirty way to rollback chain state,...
  metadata               print storage version and latest version of iavl...
  node                   print the content of a node
  print-changeset        decode and print the content of changeset files
  range-fastnode         iterate fast node index
  range-iavl             iterate iavl tree
  root-hash              print root hashes of iavl stores
  root-node              print root nodes of iavl stores
  test-state-round-trip  extract state changes from iavl versions,...
  visualize              visualize iavl tree with dot, example: $...

python-iavl's People

Contributors

yihuang avatar

Stargazers

 avatar Reece Williams avatar Martin avatar C H avatar Julien Robert avatar

Watchers

James Cloos avatar Julien Robert avatar

python-iavl's Issues

feat: finalize changeset file format

  • The changeset file format should be usable by versiondb directly.
  • It should support a range of versions in the same file to avoid too many small files.
  • It should support streaming reading/writing.
  • Secondly indexed can be created separately.
  • Detect and recover file corruption happens at the end.
version: int32
size: int32  # the total size of kv-pairs, so we can skip versions relatively fast.
kv-pairs: length prefixed proto msg
class StoreKVPair(ProtoEntity):
  delete = Field('bool', 1)
  key = Field('bytes', 2)
  value = Field('bytes', 3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.