Code Monkey home page Code Monkey logo

texase's Introduction

texase

Texase is a TUI1 for ASE databases. It allows you to quickly get an overview and navigate an ASE database.

Built with Textual

PyPI - Version MPL License PyPI - Python Version GitHub Actions Workflow Status

Demo

Installation

Install texase with pip

pip install texase

Usage

After installation do texase file.db where file.db is your ASE database.

  • Press ? to view all keybindings

  • Navigation

Move the cursor with the arrow keys to select different rows and columns.

  • Press Space to mark a row.

Marking can be used with many subsequent action, e.g. view, export, add/remove key value pairs etc.

  • Filter (/) and search (Ctrl-s)

Show only rows based on a filter. Search for a certain string/regex, subsequent key presses on Ctrl-s moves the cursor to the next match.

  • Viewing (v)

Open the current row or all marked rows with ASE GUI.

  • Importing/Exporting trajectories/databases (i/x)

Import an external file to the database or save current or all marked rows to a file.

  • Add/remove/edit key value pairs (k/d/e)

Manipulate the key value pairs as much as you like. Mind that some key value pairs belonging to the Atoms object cannot be changed.

  • Press Enter and see and modify all the details of a row.

  • Adding/removing columns (+/-)

Remove the column of the current cursor with - and add columns not shown with +. Columns can also be added by clicking the corresponding key at the bottom of the screen. Chosen columns are saved between invocations of the same database.

  • Deleting rows (#)
  • Suspend the app (Ctrl-z)

This keeps the texase with the database loaded in memory and returns to the command line. The app can be brought back to focus with fg. It is possible to suspend more invocations of texase and selectively bring them to the foreground.

Background

I use the database in ASE a lot. The command line interface ase db could slow me down a bit though when I wanted to check out the results of some calculations and then view a structure or get some output in another way. I would normally go:

  • ase db file.db
  • ase db -L 0 file.db
  • ase db -s energy file.db
  • ase gui file.db@id=32

Now I can just do texase file.db and navigate with single key presses.

License

MPL

Footnotes

  1. Textual User Interface (Also known as a Terminal/Text User Interface) โ†ฉ

texase's People

Contributors

steenlysgaard avatar

Watchers

 avatar

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.