Skip to main content

The Advanced Text Operations for scieNtific python (ATON) provides powerful and comprehensive text-edition tools to edit and analyse simuation data.

Project description

Welcome to ATON

The Atomic Text Operations for pythoN, or ATON, provides fast and comprehensive text analysis and edition tools.

In a nod to its ancient Egyptian deity counterpart, this Python package aims to provide straightforward, easy-to-implement tools for easily creating custom interfaces for any text-based software.

The heart and soul of ATON is the txt module, which simplifies the automation of text edition tasks. It also includes an api module with interfaces for ab-initio and HPC codes, such as Slurm, Quantum ESPRESSO, Phonopy and CASTEP.

The source code is available on GitHub.
Check the full documentation online.


Installation

As always, it is recommended to install your packages in a virtual environment:

python3 -m venv .venv
source .venv/bin/activate

With pip

Install or upgrade ATON with

pip install aton -U

From source

Optionally, you can install ATON from the GitHub repo. Clone the repository or download the latest stable release as a ZIP, unzip it, and run inside it:

pip install .

Documentation

The full ATON documentation is available online.
An offline version is found at docs/aton.html.
Code examples are included in the examples/ folder.

General text edition

The txt module is used to automate the editing of text files. It enables the creation of more powerful interfaces, such as those from the aton.api module.

aton.txt

txt.find Search for specific content in text files
txt.edit Manipulate text files
txt.extract Extract data from raw text strings

Interfaces for atomic and HPC codes

The api module contains Python interfaces for several ab-initio codes and related. These are powered by the aton.txt module and can be easily extended.

aton.api

api.pwx Interface for Quantum ESPRESSO's pw.x module
api.phonopy Interface for Phonopy calculations
api.castep Interface for CASTEP calculations
api.slurm Batch jobs via Slurm

System tools

Additional utility tools are available for common system tasks:

aton.file Easy file manipulation
aton.alias Useful dictionaries for user input correction
aton.call Run bash scripts and related

Contributing

If you are interested in opening an issue or a pull request, please feel free to do so on GitHub.
For major changes, please get in touch first to discuss the details.

Code style

Please try to follow some general guidelines:

  • Use a code style consistent with the rest of the project.
  • Include docstrings to document new additions.
  • Include automated tests for new features or modifications, see automated testing.
  • Arrange function arguments by order of relevance. Most implemented functions follow something similar to function(file, key/s, value/s, optional).

Automated testing

If you are modifying the source code, you should run the automated tests of the tests/ folder to check that everything works as intended. To do so, first install PyTest in your environment,

pip install pytest

And then run PyTest inside the ATON/ directory,

pytest -vv

Compiling the documentation

The documentation can be compiled automatically to docs/aton.html with Pdoc and ATON itself, by running:

python3 makedocs.py

This runs Pdoc, updating links and pictures, and using the custom theme CSS template from the css/ folder.


Citation

ATON development started for the following paper, please cite if you use ATON in your work:
Cryst. Growth Des. 2024, 24, 391−404

License

Copyright (C) 2025 Pablo Gila-Herranz
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the attached GNU Affero General Public License for more details.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

aton-1.1.3.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

aton-1.1.3-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file aton-1.1.3.tar.gz.

File metadata

  • Download URL: aton-1.1.3.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aton-1.1.3.tar.gz
Algorithm Hash digest
SHA256 4fef10b8b2b46cccb3ba170ecafd49d6e9fb22bd0ca2c99e9661d2e944b78fdc
MD5 39bd82dc51f786c60eab0548fbb25795
BLAKE2b-256 7575abd5f6976136cc24ae4b71bbebd46fe3bce2a37610667dab74f44e516e72

See more details on using hashes here.

File details

Details for the file aton-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: aton-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aton-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e02a2fd422f51c2b2c1866e429f78afdd59c7e46aa812711632607def6b04f2
MD5 c01dd5483976628e95cd520e7bc8c86a
BLAKE2b-256 9814b723fb237854174649f06bae8b3413239a8cb8f75fa2adffbaa58944e685

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