Skip to main content

pycte

PYCTE (PYthon generiC inTerfacE) couples speciation solvers (PhreeqC, PhreeqcRM, ORCHESTRA, xGEMS, native speciation and kinetics) with transport solvers (COMSOL, PFLOTRAN, and a native 1D transport code) by operator splitting.

PYCTE is distributed under the Apache 2.0 license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license. The compiled solvers shipped with pycte keep their own licenses: ORCHESTRA (Apache 2.0), GEMS3K (LGPL 3) and xGEMS (GPL 3).

Installation

Everything is nicely detailed in the user-manual. To make it quick, for installation:

pip install pycte

Which installs every Python dependency (numpy, pandas, scipy, charset-normalizer, phreeqpy, phreeqcrm, h5py, mph) and the ORCHESTRA and xGEMS solvers, compiled into the pycte wheels (Windows x64, Linux x86_64 / aarch64, macOS Intel / Apple silicon; Python 3.11 to 3.14). No C++ compiler and no conda are needed. From a copy of the sources, run pip install . in the folder instead. ORCHESTRA and xGEMS are then compiled if a C++ compiler is found (C++20 for xGEMS, e.g. Visual Studio Build Tools on Windows), otherwise pycte installs without them.

Check the installation:

python -c "import pycte; pycte.solvers()"

It lists the solvers this installation can run, and, for a missing one, how to install it. pycte.examples() lists the bundled test cases.

Quick start

Run first the test case, i.e.:

import pycte

pycte.load("CationExchange")    
pycte.run()

You've just ran the ex. 11 from the PhreeqC's manual.

You can conveniently check for the breakthrough profile concentration:

df = pycte.postProcess(["Ca+2", "Cl-"], "myRunFolder")  

In which myRunFolder is the folder containing the pycte output (the 'stepEnd' folder, in this case).

This is a small exemple on how PYCTE work. 5 supplementary exemples are described in the user-manual.

Metadata

Release files for pycte 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycte 0.1.4
File Size Uploaded Provenance Actions
pycte-0.1.4.tar.gz 7.8 MB Without provenance Details for pycte-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycte 0.1.4
File Interpreter ABI Platform Actions
pycte-0.1.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pycte-0.1.4-cp312-cp312-win_amd64.whl

Total release size: 14.4 MB

Release files / pycte-0.1.4.tar.gz

Download URL pycte-0.1.4.tar.gz
Size 7.8 MB
Tags Source
SHA-256 checksum
How to use checksums
5ef5b6851785fcce1c69f5791d073bc13bb0299db8634f9faf69144508e52b18
BLAKE2b-256 checksum
How to use checksums
c617c7972940c20e88405ba8132f18703d2c99d58953f92b1fd5c4ca4a7453ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Release files / pycte-0.1.4-cp312-cp312-win_amd64.whl

Download URL pycte-0.1.4-cp312-cp312-win_amd64.whl
Size 6.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
af904090815f9777ce0ae588bab198b0875f9c46e16ce230782f0a4930af776f
BLAKE2b-256 checksum
How to use checksums
04512c00e3241c904c6a7b9ce6b54c322280941bbe2ca5ba61d0f797b3369a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Security for pycte 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page