Skip to main content

A Python library for parsing XRD pattern files

Project description

Geddes

Crates.io PyPI

A Rust XRD pattern parser with Python bindings. Supports:

  • .raw (GSAS format, text based)
  • .rasx (Rigaku, Zip containing Profile text)
  • .xrdml (Panalytical XML-based format)
  • .xy / .xye (ASCII, space-separated values)
  • .csv (comma-separated values)

Usage

Load from a file path:

use geddes::load_file;

fn main() {
    let pattern = load_file("tests/data/xy/sample.xy").unwrap();
    println!("{} {}", pattern.x.len(), pattern.y.len());
}

Load from in-memory bytes (filename is used to infer the format):

use std::fs;
use std::io::Cursor;

use geddes::load_from_reader;

fn main() {
    let data = fs::read("tests/data/xy/sample.xy").unwrap();
    let cursor = Cursor::new(data);
    let pattern = load_from_reader(cursor, "sample.xy").unwrap();
    println!("{} {}", pattern.x.len(), pattern.y.len());
}

Python Usage

This crate ships Python bindings via pyo3/maturin.

Load from a file path:

import geddes

pattern = geddes.load_file("tests/data/xy/sample.xy")
print(len(pattern.x), len(pattern.y))

Load from in-memory bytes (filename is used to infer the format):

import geddes

with open("tests/data/xy/sample.xy", "rb") as f:
    data = f.read()

pattern = geddes.load_bytes(data, "sample.xy")
print(len(pattern.x), len(pattern.y))

License

MIT

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

geddes-0.1.5.tar.gz (163.2 kB view details)

Uploaded Source

Built Distributions

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

geddes-0.1.5-cp314-cp314-win_amd64.whl (299.0 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (453.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.1.5-cp314-cp314-macosx_11_0_arm64.whl (402.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.1.5-cp313-cp313-win_amd64.whl (298.5 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (453.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.1.5-cp313-cp313-macosx_11_0_arm64.whl (402.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.1.5-cp312-cp312-win_amd64.whl (298.4 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (453.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (402.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.1.5-cp311-cp311-win_amd64.whl (300.8 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (456.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (403.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.1.5-cp310-cp310-win_amd64.whl (300.7 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (456.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.1.5-cp310-cp310-macosx_11_0_arm64.whl (404.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file geddes-0.1.5.tar.gz.

File metadata

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

File hashes

Hashes for geddes-0.1.5.tar.gz
Algorithm Hash digest
SHA256 26411bf1510657c8e110e2ddc41865b9589a67381b4156af354db1871c122000
MD5 81ebd3d09dbdc60776223cf12e4e0332
BLAKE2b-256 693279f3b35dae970dc03a878771751c336c3142360c942f270d3e2399c25591

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5.tar.gz:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 299.0 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geddes-0.1.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e23d2a803573d0ed3ff4671ba0bb5619e380c4c2a284f47cf7e5cef5faed7b86
MD5 5904ab1ee44e20a2023fe2e6681f61f8
BLAKE2b-256 8cb62045c65a232148e33de89ec98a7afd38af9324e29ef798a39131868c3a6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp314-cp314-win_amd64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a26599bdd88c11f7a8fb6187c74c3e68a2dc1d4248f194f5a595319552c784a
MD5 db91e3e693f499e463243cbb2710a511
BLAKE2b-256 4c4c889d488081bc3283a592abef2c409052b084184622ecb20f8a470990d30c

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7344762225b5cca7d17c2738283a131fda82533c4670c2abdd0ff3361bb1edfd
MD5 4cb4774927c776023487bdb963c29894
BLAKE2b-256 a105fc5d95ff6bf8d79c7c81ca0f9437388c8ad3eb03e1feb5dac5d380f3ad71

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 298.5 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geddes-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 16d0cdf4589fd7faa19170f3472a268ef11ac0ae70f53f9c5a3a81b776fbf61d
MD5 66a991c5103863dfb2095c4a193d8697
BLAKE2b-256 0cff6013ddc472e07a05155a954fd9146f66995c8d80a7fb6af7a8dc8c7bbd49

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp313-cp313-win_amd64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10f3c9a27ff2bec21b467f19337522bb7f26b142356f0bdf94a5b252cd5989f8
MD5 c185e097f673e02871bb067589cc5372
BLAKE2b-256 ac663fcfc6e361b765b929d85ccb8e55abc6830c0dbb5da0afd89cc233df79f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe893d3b1745fd7adfb65a62aeeeb4750452281f6606bbe6885ea9e7c04817f9
MD5 c6302905c8f86162afbb2af9051c2417
BLAKE2b-256 ea5d6fc5ffc73d26a40a8ef8c3ee55b84e04ba6ef7deef13b5eca5ce957b74ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 298.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geddes-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4858176b9f9c31a8b4779e49c6df0bd8bbf254655d891243c9eb4cc2dbc161eb
MD5 ccbdafa41539c73374336e672e053f2d
BLAKE2b-256 a8adc071f8a7953cc9e6b0c0db40f425ca2a09a64a9142bbc3cd0bf719a8ccff

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp312-cp312-win_amd64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae2ceb0d32b6ffe44aca89e60a400448e44833d3658d06e835d130050c3c9ab6
MD5 e132313831030bf0477ca40f4c93101e
BLAKE2b-256 84512efb6963a6c056ff4674f98eef8d2a19779085836ec295cff192a137fd57

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e8bca7cb55f593be0840899d5a9da2c57a3adbe8e07a001f79ddefc2fce67e5
MD5 371d66a829e47a9a823aa5bb1a4987d3
BLAKE2b-256 eb44e4170ab1cfcb31f1a5a8d2e755b7b39d2c79a341f063baa7cad8672f0d2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 300.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geddes-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f6307e4c443f7843b095d5333c23bbca391a714c062025b6c9eb728b2968fdc
MD5 8862e0ce6c7eb5c96629acae1889c85b
BLAKE2b-256 0b69110eb1c3918a54dd9cc6bf71d565b181b55ebad51d10fecd5830f2e82a4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp311-cp311-win_amd64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 558426010c45498688aed08e05757a04071fccc97a28eb2c072ae47e056821cc
MD5 ca5b59d28d12703569ff38b0bc157bc7
BLAKE2b-256 9632c847f77608b0bf07fc750f75cacd6721b930fee27145dfe8b693e85f4af3

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 885a6402f08e879feece75aa1d195795658c9d5998110bbac2653ee6f8a838ab
MD5 dbaaa3b09dee084523a37ddd85031167
BLAKE2b-256 41db59534303a29fecbfac790b482d93fbf77a6625cee62a8ad2a5838bbaa418

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 300.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geddes-0.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d66e81dad47538a33c2f9db3e080ded31b79fe65ffffd2eddbe27f6f17e544a7
MD5 5e61077fbdd3c8fdbfaf3006b2c225d7
BLAKE2b-256 9b31e4fc338c69174218e6a5e7c24a4847839ce96ac0e3b82e701e47b827f3fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp310-cp310-win_amd64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7057ba007fd384059b834265d989b745858133d8c459cf417cd6af176499cc8d
MD5 a4f762777b31185fc25ae06b0a3e559e
BLAKE2b-256 3e4e9be4135b8e4183d4cb82ac1707815d7034058fe5e6ea82ff00ba49e1f01e

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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

File details

Details for the file geddes-0.1.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59c60d49e0d7d1e27cf70501dea684b3d010ae64139025cd4bca49f38148d4ae
MD5 b389a2d99cafa873ee5693b74714d0c1
BLAKE2b-256 9ee64c6c486f6676861a7c1e54a5ef5e5b58ac9a3643293f058ae99253d1e8f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.5-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on jcwang587/geddes

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