Skip to main content

Nicely format Aera interface-output to a table in ASCII or CSV format.

Project description

Nicely format Aera interface-output to a table in ASCII or CSV format.

TLDR

If you query a lot from an interface in Aera, you might want to format the output in a more readable way. This script does that for you. It takes the output from an interface and formats it into a table in ASCII or CSV format.

Installation

Ideally install using pipx, like any other command line tool:

    pipx install aeratable

Alternatively, you can install using pip:

    pip install aeratable

Example

If you copy the output from an interface in Aera like below:

Alt text

It has the tendency to be in a very unusefull format. See the example of what the paste looks like:

Alt text

The aeratable command line tool can be used to format this output into an ASCII (or CSV) table. The command line tool takes the 'ugly' formatted output directly from Windows' clipboard (using the wonderfull pyperclip package) and creates a table in ASCII format. by default this will replace the clipboard content with the formatted table. If you provide the -v or --verbose flag, the table will additionally be printed to the console.

    aeratable -v

The output (when pasted back into the interface) will now look like this:

Alt text

This can be very usefull if you query a lot from an interface in Aera, and want to store your intermediate results in a more readable format directly in the interface. Don't forget to put the table in a comment block (/* ... */) to prevent the interface from interpreting the table as a query.

I want CSV instead of ASCII

simple! use the -f or --fmt flag with the value csv:

    aeratable  -f csv

Happy SQL!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aeratable-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aeratable-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aeratable-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for aeratable-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75fae19031ddeb68ab162b1d00dc3874a95c1de26a504bcbf796a96c3413456c
MD5 ab940fcb7b8a8d8b4a9af26844dac419
BLAKE2b-256 61e3a4d26d60157fcd0fd5bba261ed73e4673e3388fd5ca45014b02bf1abe7b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page