Skip to main content

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

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.5.0.tar.gz (215.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.5.0-cp314-cp314-win_amd64.whl (310.4 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.5.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (461.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.5.0-cp314-cp314-macosx_11_0_arm64.whl (409.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.5.0-cp313-cp313-win_amd64.whl (310.4 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (460.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (407.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.5.0-cp312-cp312-win_amd64.whl (310.7 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (460.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (407.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.5.0-cp311-cp311-win_amd64.whl (312.3 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (411.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.5.0-cp310-cp310-win_amd64.whl (312.3 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (411.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for geddes-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3e6cb9d9905bdd9c7be5f65504d965d80588c165e485850db1452b4fd1623ff7
MD5 7a0ec2a757cddbaa1fb94be8258c8943
BLAKE2b-256 bfa74d2e19700a337ff6e8a1a574ae202f3b8c543aa5dd0ca5a43ea9fde18cdd

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for geddes-0.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a8015fac27d3d918fe45d42528121d8f028615ff078c7f71030728e11d876591
MD5 3c4eee3a40706923b6637311a54c6bd1
BLAKE2b-256 60fdf1035ab95ddd3811d7c328ac2ea0728e3842643031c60bd21be0c449c8f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 568fd1c11bf0cdfbf36cd6aa79ebb7ccfd1a6853c7cd5042d0f92a01f0784795
MD5 02beab89227577a94c2e222095ff67ea
BLAKE2b-256 73c701b3835dead20236f12e6c2d0dafed756a66d809223d3fc90b74260c401a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf3e6aa6e0b9a3ca494f646f15e399fbb8bed1a81bf691ef5dcd64b3b51e3f32
MD5 f15c7217f45782d2583bffbde44bc3c2
BLAKE2b-256 6f96a05daca33029652e81ce12f202225f9ea9adf43873789f738919a21f8cc2

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for geddes-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5d7dbad7679ab036152b466af8f627f608508dbaf8321cd107dfa03bbd72466e
MD5 cbcf2de20b3b1331069b8366fdcef37b
BLAKE2b-256 d1fe91c933ae7f65b9016d2bef2a04736489ba394b8b0da1c5ffc346dd69dbae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2f1613c3145bfd821ded64e6929269eed5151db042680f16d2e43122bf106854
MD5 4154e239198f10ab0807192d5d0f6fae
BLAKE2b-256 3229a7cce5e995b2f4d062084088a72ecdab0a3c7ebf06e8257da1e7144c1ed9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0420d10899189e2dbc4eee308968dc75d192d1ee2fefd53d1c107ed305289079
MD5 64cf0b095b07c0ba517bc02ea76be2c3
BLAKE2b-256 ecbaba9e973537cb09e8394c25944c08aa67fe1140db677e6de2f192a963dc54

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for geddes-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e047919a3509c736b4b1843484d57524db021f2b953c3d5c554e210f242a7918
MD5 dd6ddc18e29ee17e7f83c42345db8eea
BLAKE2b-256 6dadfd94b21e1b2613c961e6dbc53053b519c547c163720dfb57cf7fb30d7854

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5906570c615571f76592ad3e47a64e41e035e5d488b2a04813742e39342d3fe
MD5 0c152143d36c6bbcb6ad17b2b125d829
BLAKE2b-256 1f1e7a1f71d512725d4531fec90e35f904f94eadb7d995d7a03966f28ef38414

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37aea214973d06b5ecb9822408fd031baa06c7d0b6af3932b5719c7b495c86cf
MD5 a9950e91d744c4520dbb0d53c486ae95
BLAKE2b-256 6e98651933ebb212b055ce51813d93d2e966a3f0a429be92a9835fab9b3cfcd3

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for geddes-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 847a2b00ffaa88bcb7a12bed6efaa5f05fdffb60998ba23a03fcbcbf407f6a36
MD5 e6d0f620bb08bbcda854663f3c54f9ea
BLAKE2b-256 0374b37d9d719ed1255567ea191ad1f1a8fa30ecf2ea3060b3c8967c1388855d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a92232ac604f762079d41ddafd8dc376111fdf3fa702c73190374fe65a0c317
MD5 f8e140491f16a1966df3e92f706d14b0
BLAKE2b-256 89f4973350743c5899c8c9aa9e6fc1af35abc643d08e8858cb0fe841350426f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fda0432ae17af753516c3949deb6dc2084494e9462ad35c6f1719608e9ebcee
MD5 896512fa8be3f4d88a0828f7e6d7ca91
BLAKE2b-256 95a4e53355ae4c421249e3e44c2511a02673e297506c610ca3820ae3d341e0f7

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for geddes-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1e913163487f067d2ef50d490393c382a8ebfc34c9d5cf741970280ce6e8e688
MD5 72d02efb88d7d4c6c9c254a363c28450
BLAKE2b-256 6757952a7f2b03f128e3b19cba884d372eaaeff608b2d092b9a1b970bf5f9002

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66bc0d2cf57098a66cefc39c5107a380f98a58cc51dd16f035dda2cad6035c81
MD5 2aedbcc375bc28de87f1a901463bd40d
BLAKE2b-256 d98c0a1a90b816fbc1c08c092fbbf69cb6973b683a900ee86d1e74ec6e594d72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72a4a9e6c50758f89dc7cc44883dd98598a71ff0a383f2ab3b89efc49dfa5c67
MD5 2a223defd7616e2cc1036daa349bb4c8
BLAKE2b-256 8f01cd7342fbf290569bb602d40977ec03f4dc1631fe14b7f80f6f15dfd829b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for geddes-0.5.0-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 Sentry Error logging StatusPage Status page