Skip to main content

APSG - The package for structural geologists

Project description

APSG logo

PyPI - Version Conda Documentation Status DOI

:thinking: What is APSG?

APSG is the package for structural geologists. It defines several new python classes to easily manage, analyze and visualize orientational structural geology data.

[!IMPORTANT] APSG has been significantly refactored from version 1.0 and several changes are breaking backward compatibility. The main APSG namespace provides often-used classes in lowercase names as aliases to PascalCase convention used in modules to provide a simplified interface for users. The PascalCase names of classes use longer and plain English names instead acronyms for better readability.

Check documentation for more details.

:hammer_and_wrench: Requirements

You need Python 3.10 or later to run APSG. The package requires NumPy and SciPy, Matplotlib, SciPy, SQLAlchemy and pandas.

:rocket: How to install

It is strongly suggested to install apsg into separate environment. You can create Python virtual environment. For Linux and macOS use:

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

for Windows use Command Prompt or PowerShell:

python -m venv .venv
.venv\Scripts\activate

[!NOTE] On Microsoft Windows, it may be required to set the execution policy in PowerShell for the user. You can do this by issuing the following PowerShell command:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

and install latest stable version of apsg using pip within the environment:

pip install apsg

To include jupyterlab and pyqt5 in installation, use extra option:

I'm using conda or mamba to manage environments

pip install apsg[extra]

or install master with:

pip install git+https://github.com/ondrolexa/apsg.git

Alternatively, you can clone the repository and do a local install (recommended for dev): git clone https://github.com/ondrolexa/apsg.git cd apsg pip install -e .[dev]

Upgrading via pip

To upgrade an existing version of APSG from PyPI, execute:

pip install apsg --upgrade --no-deps

Comments on system-wide instalations on Debian systems

Latest Debian-based systems does not allow to install non-debian packages system-wide. However, installing all requirements allows to force install APSG system-wide without troubles.

Install requirements using apt:

sudo apt install python3-numpy python3-matplotlib python3-scipy python3-sqlalchemy python3-pandas

and then install apsg using pip:

pip install --break-system-packages apsg

I'm using conda or mamba to manage environments

If you have already have conda or mamba installed, you can create environment with:

conda config --add channels conda-forge
conda create -n apsg python apsg jupyterlab pyqt

or using mamba

mamba create -n apsg python apsg jupyterlab pyqt

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

:blue_book: Documentation

Explore all the features of APSG. You can find detailed documentation here.

:computer: Contributing

Most discussion happens on Github. Feel free to open an issue or comment on any open issue or pull request. Check CONTRIBUTING.md for more details.

:coin: Donate

APSG is an open-source project, available for you for free. It took a lot of time and resources to build this software. If you find this software useful and want to support its future development please consider donating me.

Donate via PayPal

License

APSG is free software: you can redistribute it and/or modify it under the terms of the MIT License. A copy of this license is provided in LICENSE file.

Project details


Download files

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

Source Distribution

apsg-1.4.0.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

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

apsg-1.4.0-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

Details for the file apsg-1.4.0.tar.gz.

File metadata

  • Download URL: apsg-1.4.0.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for apsg-1.4.0.tar.gz
Algorithm Hash digest
SHA256 eedd813ae5e026341dab6ad6a98cfa6ab08b46d944b4e233497d6ddd12c9e4c5
MD5 06705b835aa0b730f8c804a3bd2c83bf
BLAKE2b-256 f6346c35ebf96967a7d2a6c7e35a94f603516fcfcb7437368399b3249d50ac2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for apsg-1.4.0.tar.gz:

Publisher: release.yml on ondrolexa/apsg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file apsg-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: apsg-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 86.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for apsg-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a93b45f131f1abb8824f246c52c522359c935c5a9ea082e515a27116487420dc
MD5 2f4ec8ceedb5efc864cbc699ee5bbed7
BLAKE2b-256 c49fb17a3c3acb5955a75586eb887726adf4a847cc57d002d039ac6e952176b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for apsg-1.4.0-py3-none-any.whl:

Publisher: release.yml on ondrolexa/apsg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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