Skip to main content

A Python library for parsing XRD pattern files

Project description

Geddes

A Rust library to parse XRD pattern files. Supports:

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

Usage

use geddes::load_file;

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

Python Usage

This crate ships Python bindings via pyo3/maturin.

From the repo root:

pip install maturin
maturin develop

Then in Python:

import geddes

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

Loading from bytes:

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))

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.4b0.tar.gz (151.4 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.4b0-cp314-cp314-win_amd64.whl (270.3 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.1.4b0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423.6 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.1.4b0-cp314-cp314-macosx_11_0_arm64.whl (370.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.1.4b0-cp313-cp313-win_amd64.whl (270.1 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.1.4b0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.1.4b0-cp313-cp313-macosx_11_0_arm64.whl (369.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.1.4b0-cp312-cp312-win_amd64.whl (270.1 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.1.4b0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.1.4b0-cp312-cp312-macosx_11_0_arm64.whl (370.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.1.4b0-cp311-cp311-win_amd64.whl (271.8 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.1.4b0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.1.4b0-cp311-cp311-macosx_11_0_arm64.whl (370.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.1.4b0-cp310-cp310-win_amd64.whl (271.7 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.1.4b0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.1.4b0-cp310-cp310-macosx_11_0_arm64.whl (371.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file geddes-0.1.4b0.tar.gz.

File metadata

  • Download URL: geddes-0.1.4b0.tar.gz
  • Upload date:
  • Size: 151.4 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.4b0.tar.gz
Algorithm Hash digest
SHA256 49bd0a0bd96e82c48e55705057b5ace83ac650d1657af953d70bad84e28b260b
MD5 822b5b2e5cc96d3919eb0e2613e15e62
BLAKE2b-256 5b4b498af6b746ae2b2137448dd0f781565a4807867d782db5a43a5490901621

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.4b0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 270.3 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.4b0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6dcde37b434e51e62fbefd34c07f55140ee3c3503aec8077c59b4b440fed5052
MD5 5c93d77233a32a0f7fa1dc0d28dcbcfe
BLAKE2b-256 64f78695543218b7f99bd2d74ee58920f4d1ea4e5f65dbbac146f5980e143f39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2865f14f846c198ab05911479cc7bcdfcd35b09883d2a6632a0e6dcb26ad99f
MD5 a62daada6596e4738f80e7db4a9448b9
BLAKE2b-256 531def5fcd13efe6257d427f0e8ace7386a6a8b634ae34d6a8062997504310f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 888f899dc3f050ac794a516fe246c3103b95b0f4065aff4b7fa941028b82f377
MD5 84b78ca2e408b8b1fecb7a2ea9dda152
BLAKE2b-256 162d50730c0c74b3bd1a93fb3f9a9ca70553dc844af74c23fadbf89cb08193b2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.4b0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 270.1 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.4b0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e6d352441e63e0118c0a51560a9f3c57939150d7764c5cc274d53af46ddca2c3
MD5 5bd020ac7781f6425228be0bba227fd8
BLAKE2b-256 a291d4da11a4cdf19d0654dee250cd5239226bc5a70bf5012868f72868749c9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bcf15b0af9ecd05232fbd01d124c0595101fa29a4f0935b7fa5a2a8a8161e49e
MD5 c43967ed6fbf56057aaf0146f0dd0a62
BLAKE2b-256 65206d923564a0b23b159b0dc3960efa194bdcebd617a6bc3931e406706b22e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57679b3917ee5bf91741f271754a18973e2aa62420d2fe41ebed109e0c80dce6
MD5 30cccda8dd32a925618244820418a6e4
BLAKE2b-256 955a897dcb073c99fab3a416ef3136fa7c4eb1ac4ee4697d1d654866f2919bc0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.4b0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 270.1 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.4b0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a976d658e9de25a9df7e5a55e5ad3fde6851e45628c5fceed535f5ba1de1859
MD5 b8856953cb0fc2d6d5becc2c63988a91
BLAKE2b-256 71aee79ebc252946bd057801d92a01a388d6656cbf46f27cccea38bf9d7540f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9fe88e5436bcde1e1534b0dd246847be54b1cc24801707bd71eee23d577b9712
MD5 646921afd9de1b3eddd3ff805d8ce87a
BLAKE2b-256 3d68e968ae267579d5824c79ad4a345eff08410e55c1582681cdf3bbb6408035

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dcfdedae5286945b45be2f9432b0f1075b54e8025b7a69ab52432d4d2635e1a
MD5 ed17264986fcf18106e5053b0a201996
BLAKE2b-256 4f144e0b1246d258375956eaea1267fe9d3e4fc3150d1d0f2282b70bd6ed9997

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.4b0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 271.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.4b0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0affa605a0d4ef05398be091faa2474a4c1d808e6de61c5a0b47199b4a28faec
MD5 76d3e04aac8ffb3b4a4e0a7bd265184d
BLAKE2b-256 694dc67d3a0a55f42287cc2f20f533c6a943b7336fdbdf90553819d5efe5afe8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39debd61be0cdbbdb08db73f3b81244c733063b2930d1633d26ed5ae93b4b7a2
MD5 f025947f4f58cf5bf2b4c68606dd7244
BLAKE2b-256 9ebcc5004366b605aa20f5c8eb739065a30a621ec84b87b50346d5baa9837dbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8be260a6aa2d84341808e42e2e15ee1fe069781e16974d41193b567db5a5f934
MD5 cf77e48388363fad64d6203270c86006
BLAKE2b-256 08203ea60db9bd0dcff7c203ca85a63f96b3c6956eb755455c934e98b8811235

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.4b0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 271.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.4b0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3a90290ee63a348384627eb56d53b2f257da7d32a55a3aceb37e2b10384ef030
MD5 2d7e52fef00190fcb2e8416262975ed2
BLAKE2b-256 cc23dec876ff5648096daac4a4e832a205e3cbf6fea9b9610c5c927a8bd73b5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b49d3d88728836fcf4d83b45945fba81b0b839ac56f272c645a75fe5418f72b0
MD5 586def0432e7290cfe85cd322e66e93f
BLAKE2b-256 921c9a8115eaae6df28e6a1a87454b49e4bfcc4268790eb2c75dab7bcde1326e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.4b0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3376e03a18e2e4b8fd37d709cf6fb0a4cc6b7ea1682d23bd0d71735e4d847756
MD5 2f39472927c28bcaebe9b81b7b6ab27c
BLAKE2b-256 3b13a23bb26f6521392998b122c4756b252b59e59184769138224beb09d1eae5

See more details on using hashes here.

Provenance

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