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; Bruker format, binary)
  • .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::read;

fn main() {
    let pattern = read("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 geddes::read_bytes;

fn main() {
    let data = fs::read("tests/data/xy/sample.xy").unwrap();
    let pattern = read_bytes(&data, "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.read("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.read_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.6.tar.gz (180.7 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.6-cp314-cp314-win_amd64.whl (300.5 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.1.6-cp314-cp314-macosx_11_0_arm64.whl (401.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.1.6-cp313-cp313-win_amd64.whl (300.3 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.1.6-cp313-cp313-macosx_11_0_arm64.whl (400.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.1.6-cp312-cp312-win_amd64.whl (300.3 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (456.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (400.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.1.6-cp311-cp311-win_amd64.whl (301.9 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (458.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (402.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.1.6-cp310-cp310-win_amd64.whl (301.8 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (458.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (403.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: geddes-0.1.6.tar.gz
  • Upload date:
  • Size: 180.7 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.6.tar.gz
Algorithm Hash digest
SHA256 9a60f62d1b71949bf4886f89709fd2fbffc57545e48bf6d15b35b203b89e4c30
MD5 4b36f87f338135373fb8a7e25d5e7ce7
BLAKE2b-256 b5370c3f74a0cb8ec5f987fd4c63ea3b1814525dd3614732c4f84ed5a66c19cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6.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.6-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 300.5 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.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4a17f8ad852bcdcf678359a9231fd7727a6688db7f701812a880cdde7171b2d3
MD5 f28fee3358f1c16a484cbe1f4dde5389
BLAKE2b-256 60dc9daee894d61b265c346b7f3b4a3fd48ac9e60953103f5fa5b6f40d725590

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b4c0966842bb3a0083ee7404d7e78dbd7bd3e36c16d249366eeee25901fc75fe
MD5 b3deb951a7a69aac0e27cb92cea7aed1
BLAKE2b-256 50b1e9501a29c69f1942eb31cc50c67844cd979dd06dbeb4549dbd6bed162d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4f022fcd21ef33007db5a24e003fc5ab7e81068d4b76a2977595158b8331aea
MD5 2b6f6e1dcf4420ccf262ec18fab3a532
BLAKE2b-256 381f8e75ba436d1fa78d05dbe4c3e4ac4b19323ca5780bef764f637cc61067c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 300.3 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.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d1e3f76a4b78e5ec3af508907d14472f5e1e5fa6d9bfc5604f8f918c355151ae
MD5 193f44c70cd6aaddbd8b9866127c0039
BLAKE2b-256 4404542d15e910a7a3de7bc1f107c5b9f3b89430d0b2c4607514da85744a88b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68b98bcdaaf8dd33a6e3cead8fd00b914b6d2d92236f7b5ff286c1d62773f6e1
MD5 de1bf9065c09262d0661e320d706f8e8
BLAKE2b-256 3e741c19226ef03c0fff896ab168054062d4275644e5582f45f9381dce765273

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2eb5413c6cf0921c853607af6b30620f899aecc20bac8bfe9e7944c9a4726e94
MD5 ca41e79201dd5c2baac839bcc2abf5ca
BLAKE2b-256 cb98b27676a9e3570104354a51d97ddc7bfcffc3c668d6dee0cece557e86649d

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 300.3 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 71f366fb46f31288b07c68d5141935e4138f84bca843d559d16ec6289ec1627c
MD5 c37679fa91fd9a38eb37645e09f78500
BLAKE2b-256 8a9e917d92b5ce4a90eedd64f53a363861a7254c8b96aeaab185f5dc1a6d2f5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4e330875ac15c3823aa27e092aee4bd09b0f9e3f60442779ceef611ecb9feac9
MD5 4f1bf7ff77aaefa68713cd9c4a922261
BLAKE2b-256 7cf202a6aae3c596e5f61c919e3df1578bdf175f7d3692086b4d1e1065b26777

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bd20a1a7fa2f0fa24f6916194c3b7e997db5d499818d511aff522525e40cb64
MD5 0e1d9731d66e5008f2e9f69f5e9f9590
BLAKE2b-256 f8313b6b6c43cf688a534f9102ee61f328603f73ef3e0f7320cefa345ad56855

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 301.9 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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d44f492b8e5c719ada73f78602ec217d124c4b9bc2e1f68f7b10df41207cb02d
MD5 c63e47d042375692b0f65e1aa0188f51
BLAKE2b-256 4caab32fce577b506e3ea13e38315a5e7da78b0378cbce68c8ace5e7750b3449

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d933871a9a0bb27e28adbbe2581eed1e03cdcc3fa67254bd7bdfd3aa504444dc
MD5 f4f5addcdb600c69c6308bf3915fb885
BLAKE2b-256 62c67f55c3946bc3f674434a685514f9497428119d8d60e9ce2d180d4fbfb6fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed38c4147c2cefbc112e9335faa540cac27bd72951c4e56f6bec21434d00db59
MD5 afc2f98dd61711e17c93fe639057082d
BLAKE2b-256 e063d8e9ccdbe89ead058919d2e67d577d41dc063b99f3614ea02d5dd3c0930e

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: geddes-0.1.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 301.8 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.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8ebe414f9013e8cc4b09b39d49a8fc91c6bf16bf73b4ca6af9207c23ccb8cf21
MD5 24dfdadadbee743ebf2c44bdf738cbea
BLAKE2b-256 589cffd23ce8aba3e570b31d74a32cb8b207bf04c9a9bfb93824d231b98a3949

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 372a0a3ba228ef4a969c62224601eb2eb3bad4ee8af94d0df57c8c539cf06cdd
MD5 eba539ab675922fdfc80c82adeb4cdff
BLAKE2b-256 e52ffe200e8901d640371f37696c0cd0089f3135fc80ed83be9b526b7b7ef036

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geddes-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11813079c60d3293510ff6642cde65ba08644b8568aec08852cb41feafa7e478
MD5 5b1168ca68aeae31851eb0f30314d3de
BLAKE2b-256 1ba14d0ecb80af31975403b159ed051cfdeb5506153dffb8df38006eed4b7cbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.1.6-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