Skip to main content

A Python library for parsing XRD pattern files

Project description

Geddes

Crates.io PyPI npm

A Rust XRD pattern parser with Python and Node.js bindings. Supports:

  • .raw (GSAS text or Bruker binary)
  • .rasx (Rigaku Zip archive)
  • .xrdml (Panalytical XML)
  • .xy / .xye (Space-separated ASCII)
  • .csv (Comma-separated values)

Rust 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

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

Node.js Usage

Load from a file path:

const geddes = require('@jcwang587/geddes')

const pattern = geddes.read('tests/data/xy/sample.xy')
console.log(pattern.x.length, pattern.y.length)

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

const fs = require('node:fs')
const geddes = require('@jcwang587/geddes')

const bytes = fs.readFileSync('tests/data/xy/sample.xy')
const pattern = geddes.readBytes(bytes, 'sample.xy')
console.log(pattern.x.length, pattern.y.length)

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.7.tar.gz (183.1 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.7-cp314-cp314-win_amd64.whl (307.8 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.1.7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.1.7-cp314-cp314-macosx_11_0_arm64.whl (400.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.1.7-cp313-cp313-win_amd64.whl (307.5 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.1.7-cp313-cp313-macosx_11_0_arm64.whl (400.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.1.7-cp312-cp312-win_amd64.whl (307.5 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.1.7-cp312-cp312-macosx_11_0_arm64.whl (400.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.1.7-cp311-cp311-win_amd64.whl (309.2 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (465.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.1.7-cp311-cp311-macosx_11_0_arm64.whl (400.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.1.7-cp310-cp310-win_amd64.whl (309.2 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (465.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.1.7-cp310-cp310-macosx_11_0_arm64.whl (401.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: geddes-0.1.7.tar.gz
  • Upload date:
  • Size: 183.1 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.7.tar.gz
Algorithm Hash digest
SHA256 4ea49280c7dd6c00b65c77ac33abef884ee93c7ab2ec138c7482fb9f1b57eabd
MD5 a37523940bbb14c9f655ccab1f7338aa
BLAKE2b-256 3e768ce13c14513ab30b44bfc5316cb64f4dadb1e2d1450b7ffaf116c232cd62

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 307.8 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.7-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b54325190fc49a2df038626698965268d7d553bb75f997f2fa5fab0f570c1be6
MD5 3e5dcb497b2bd472cfb9cd3b146c95b7
BLAKE2b-256 da3d076b0affb20da2e38b2c8c4607be63854d3850b0636b74a239554618d8b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 786a381b7bb251e683b3a0576c47a765118aabf9f5767444182e58c7a610a4cf
MD5 92d8f26f0c419baf26b6c9626c78ce48
BLAKE2b-256 24ffa9d8e5ab46b7eb14361b1373ba73f15b512b7ab73f87d1d7608bd115a503

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b98cd6efadc154e60b8568855e754a2ac52d004262ee39018ad4bf5a7c77552
MD5 be3561b14fc12270cd4e14336201129c
BLAKE2b-256 664f4ad38452a25f2b0799a8627356d2ecc2b976f489f72402fc8b10746e7eab

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 307.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.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bc53f8987786d3f75daffcc8a8b4b0778d97d8701094433b159a221cc68b5198
MD5 01b29a1a014d965ea3ed1b680ce8c56e
BLAKE2b-256 9ee430eb2b1463d26d1fa943826d105eb7fc24bbc36b6d1b2d77b09e332476d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dc1d7d661f494a92f8ff0c0dd981c797f8c7976575dd851c2f1241c8dda69cb
MD5 72afe29026c169b8fd8866f8052bb662
BLAKE2b-256 2b580694d0ebca9d526137d1e3f2e7a4120f336973fff82edd7ec436ef102d8f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50784258620a67658a7f489a358ff509a12ebbdcc988b80388866c9b488056be
MD5 3c6adce7fba9fb5ed8dd2b854db12287
BLAKE2b-256 6ffd4d54d19cef1ac3b490be8305d0fc51f7404838a760e8338712e03f2ca826

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 307.5 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.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27dd33112dc5a008b2597ccb0454546a673b994f10088a12e673c9ad973178b8
MD5 41bebcc89c9bf4a0f4790c39a5f23d38
BLAKE2b-256 8aa89275039cdd0bbcd22fc6044d82cbb7897db7e69af16080f64b8c24a779d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ed0f41f93e666507a2dd5b06009be9c710152917f05b7e55bb4129518e74ade
MD5 35fecdeeb88d0624b4fe742d17c5fc8c
BLAKE2b-256 bd1f0678a75614a28d44eec9dae4ceca764ef1bdad1aeeb7f1ef467254d1234a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a8d9ee5077d9c2d2c22f47d16c54d4c7fd08aae5eceb4b1feef1c7ec5d78dee
MD5 8a45d28d298ddab4fd6ab9572bcb6809
BLAKE2b-256 6028207d6dd0415f553171ed50016cdf50766e4aa76e5beeecaa900ca1774482

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 309.2 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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f45192e4bb17280a2e3dc7d1a2b9b2eb88a44736818f444e539fb287d308140c
MD5 ff5028816f1a30b3672ba2587fd5a1a6
BLAKE2b-256 0e354099028cdfc9607c05adabff26386801bfb90a2e2aab7f7a3bb1c9a0213f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9634f0d207521ff2a2f5e4fa34a0f994c3cca46fc7062297e46ce41ab8f8d370
MD5 cd5d86b5940226ee71e37b4483f94156
BLAKE2b-256 603cddd5b33a6bf6f9d395edf980aae96800c817b36c17e9cfc41fcf920cc337

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 287a434e13980ec588bf3097582d5d9befee5674ff9b511362ee739616bc4394
MD5 5697c3154663bfa7c92a8c82e921315e
BLAKE2b-256 8932851d28659ebf84473320679ec403977de43d308d418ac0a3d7b30e5caf73

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 309.2 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.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d57cb3bc02f64726184ea64ceb3d10db1f1f57277ceaadb564ac3177cdbdce28
MD5 d1f728aaf87d5f4d937568dbe2ed669e
BLAKE2b-256 7e194b3d5dcd9330cc9325301c1d3ec6f92f53b02cb74d1414b257acf504b908

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c093c6b56291d44ba77ee2443fae2e10ff8f44ed7612b3ab6465cf06ad78dd10
MD5 c7faf6441be269c8e534c610268040ab
BLAKE2b-256 767ae5d0f0b2ecba1edacf8306abdf6440e77f81a99f1eade118c9972fe5aab7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f4e5450d0ed7ba1abb58bb891aaf512a493707d803a4e3019448acb0cdc77fd
MD5 85fbae52950dccc2f2b4814649658e31
BLAKE2b-256 f343749f7747d44dc8aee5c7cd85929bd1409684da7d92dd693778748b676ea5

See more details on using hashes here.

Provenance

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