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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: geddes-0.1.7b0.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.7b0.tar.gz
Algorithm Hash digest
SHA256 934ba467ab8686a480996832a0b60975fceb79227ec4cc55a9de318742ad081f
MD5 0b79af12702af091f7750230d8604b65
BLAKE2b-256 ae90fa44e11f65caa0af9b6b350d6ce7b1a759dccad4f4170c80121316aec9df

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7b0-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.7b0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f8b0e27ca9c3d16c9e4aa25df6ea425a46057933908391b33f4087aa1405ed1b
MD5 88b32611902fcdf8fe88ce0d74a2d95c
BLAKE2b-256 7c7015656b6060614c70247d114f4c8edfcf8765a305a11d49c167e25af81cb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87a08dd72f145bf25f965a1f8d51dce0fdb8770fa4208a915b42602240ab3ae4
MD5 61aa708008465a8d05078cf2d9bdf8f2
BLAKE2b-256 6285ed2134c26e81bfe78f076ceb1608135e687b72072796a5befb23c8a0f049

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ece0f56f804d1e6cd5d6f7d4d4cf14bb4c5698e9ff650a977c9d11fa1a77ac80
MD5 abe80b8b8601cb1783e58d8dc69e9f0c
BLAKE2b-256 736e7b6848b2f796ba097879bf0e54d13ee1ec6fdcd174aeb60cd933b87a7652

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7b0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 307.6 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.7b0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 12726969219b85381481493ec54d0109f2fab08776f51df96fbcb9ffc1859420
MD5 338f6eb37ba4f6606ad145477b26fe52
BLAKE2b-256 400204250b8f482fa394e95b10d4d2c68cbf001d4f9bd2cb601aa9ceb4d1ff06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb0a07272676589fa40f06e2176b1fa882b21d2a9ce970bfa242e564c93c119f
MD5 7051c890d95a735d1ded39efb11543ea
BLAKE2b-256 ee982f1ee4392bb56db0fbb6df8fe39980fc84699294e6ca7d61356a31608503

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5afe26c8dc403df24263722f5b15bafb23433003398d199dd33603190adefd00
MD5 49532cf7e9618ccb9c058be8e3f9ed0c
BLAKE2b-256 b8a957706db4323d05db79ac9c1e271b6a519fba7e89117cc61926b68b9555cc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7b0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 307.6 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.7b0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 078162402c0f9bc959793e9dacbea2e7ba5881e52480f2a2f1b3b7c16c1c50ca
MD5 327927bb0baf26d1e5d0ad416ff4ff7b
BLAKE2b-256 40cb72d2fd6aae8560088ff97f298d8f2fb60b720aab1a4a35938e7020d83368

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 136c9b7be838c7706691677f937a1a3d3f6e40efc346f71ba2c220d1daeeba25
MD5 932458559cfc1da1e2b466cf46a2229a
BLAKE2b-256 7e85284ef154d48fd1824510c0f9fcf3209dc00301c93dc2962ab860ea3feeb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c8c39ff7379c7e2aa7baa7e216b96084ad258b803b58eef330f6aff68938824
MD5 672f365b8acac1bb09cb848bef0fa3b3
BLAKE2b-256 91a450ca7a84f2b474dd780c37a93d80f7a4fc4176d9ffa9298b4873cd6b7f87

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7b0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 309.3 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.7b0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3ac7724a259efbf966f23b8e6223278dbdca903905de7bd568291a52546d22c3
MD5 9c2547264287cc09f5258cea2b49f73d
BLAKE2b-256 fd60726639b07bf9592b1cc01f7429657fbbd8362bd912eee764bda8822b2b9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab007e97386e3d1ae3f9dc324a7f6b49aa0bcb2bc298aeb2034273258007a6ce
MD5 4bd1eda39e9de437ba375860cecb029c
BLAKE2b-256 08406a8fe2c3888ac69e1f435d399b110ce86fa49cec2be631b15a85ebe3808d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d463644c5049d1a5f972b976b33e8e90ab845ed9bdc8d7fb3d6cddbc1071d63c
MD5 d77b5ce089337fc0346d913965afa82d
BLAKE2b-256 f6715a635718aa735520a881309313c0080030f9cf8ecb5b1a883ff5b6ac86f5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7b0-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.7b0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b48e0218b9dd319488c8f4234e377767be140ae08608d54981b35d1c3af14059
MD5 a793e5146834c9d0d4cada4872c42689
BLAKE2b-256 f92c7828b955b610862569b3fc9d5d8d3060d2948b061c90c970939d00193f98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f38634749279028db2669bbc13bb2236938e50b5b456da183115dce2a660fee
MD5 709d5f2168e9f189ebc99bfb2d124582
BLAKE2b-256 908906b3008ff20d698078111780352deff748a6896743d2b84e491f26584193

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7b0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a468e1638cff8e32f48d4239300ab8da57f6afb10005f1e4ec0ec6f74b4605d
MD5 c4374d9a57a9e5369ec8811b175cdd8d
BLAKE2b-256 2f6ccfffd9a060d8b6ed3bc758c1dd1bfec8dadea1e5255a14f7967a8e408295

See more details on using hashes here.

Provenance

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