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.2.0.tar.gz (213.5 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.2.0-cp314-cp314-win_amd64.whl (310.2 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.2.0-cp314-cp314-macosx_11_0_arm64.whl (409.5 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.2.0-cp313-cp313-win_amd64.whl (309.9 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.2.0-cp313-cp313-macosx_11_0_arm64.whl (409.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.2.0-cp312-cp312-win_amd64.whl (309.9 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (409.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.2.0-cp311-cp311-win_amd64.whl (311.7 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (466.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (411.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.2.0-cp310-cp310-win_amd64.whl (311.7 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (466.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (412.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for geddes-0.2.0.tar.gz
Algorithm Hash digest
SHA256 74bdf26e1e2fc229846c425570cfdfe31bd320302a0ed1f204adeb3bb0ff4e93
MD5 ce6c118d5c7e9096a2d6be28cc04bb9b
BLAKE2b-256 0a0072b8318db8d151355452ec718270da605bdffc68118eea42e7a4055fb7d7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.2.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 310.2 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.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b046f241a9b8cf1c65248d3b9060963a9725730d4a6670d31540fdc7b035d283
MD5 c998f7e4a3cdc6161a37d5a38632c520
BLAKE2b-256 412b5ad21ce3681b2ee2f14658b62914ce6593e3eba6de22bf80c1b1ee0db05c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f65ab04941ec15c74ddd10802518f4de88064223856a0e2016753edc5051d0f8
MD5 7b133bcc7e4a04e6a5ad6d525e2ed55d
BLAKE2b-256 be6dfb39176a6125dc33ac094a76b0e01f8056732478f799962be4482482774f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1b293120ae820d6b25cb5983f7423c48d550d9ae7661c786dd557543b98cbb8
MD5 f2ba3cc810b99aa311a843da38d8fdc0
BLAKE2b-256 f00a45f4043d0562f1f237442a5bbd5172168f760a3e659dd567aaa99c8f740c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.2.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 309.9 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.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ae48e080ef4689106cb0028639f2ac2e527abca9097b63cece4b9e76147f2cf8
MD5 04f9f02a17078a8d0d6f778dd4d41dd8
BLAKE2b-256 f81535428bc4f5d24787d04e7861e6d282610e8211d54daf748dc76451f19b47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11e1607d8e2231915ccbf9e6799f78d4d74da7b5b7242870716ed4a58b78ae02
MD5 d1eb2637e8f432eab662b672b24683a9
BLAKE2b-256 ac787c926e27c0c7eb873161839b3966b008e07e0bc7c5685cba1f8ce3268cd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63ee0aa3736f596fbbe24c54c85c3e148ea30ff526089cc15711ea9a1218cabd
MD5 8d0dff056503915ad1d8fc51215ab55e
BLAKE2b-256 14f3534ba09c42af35fcaa011a5fe430ce76115320cf14cd851c956fdd7873cc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 309.9 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.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2bafac09cb97610a5c8927c9316ade3a629bfdae9d0d23c7598e7e1348d15663
MD5 406d365edb952c28b7fbc115b32ed175
BLAKE2b-256 f9eacbe9975abd5993a2207b9898a17174c0dcd1a27eb55783c9a1770a948f3b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e952c824a36c1a951b9340cd78a8209c79321d36036254eff3ae98b7425eebb5
MD5 ede0708b84d11ce8cb392ed2a4f529fd
BLAKE2b-256 fc597800fa17714fc2d98515b7759b27df443d68bb3e62d8728ab3cd7d6de241

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b28819b31e42b1cac228c8fa4ab6064783743185decc2ddf996be017a9605f50
MD5 4234f0bbf9deff21bdee42085bcf0fdf
BLAKE2b-256 bb8816ad6aabbb97368cc9a0466dd82ebafd6494d03faed003c8d56be2948b0e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 311.7 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.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 87e9358c9d8dfb8795af5c5e309d909ced0cf06f7c58378e41b923b53ffd1dc6
MD5 ebf9deba99038353978a2609d097dfce
BLAKE2b-256 48ed38fd97f9822301f30ad298a42f77786ac4511884d52f4c2be84574cf3de2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65f63aac52d981a297b1f277db4922ed67a722cb9e0e18e2a2f04cb21732bdbd
MD5 6b4038adbadbea54b94253468548b6a6
BLAKE2b-256 f0ddca81b963410a4bb4184b6c8a11adffed74b19c44c6473e8515e399f1d27a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10cc9a3b7def1092740e535e9276e5fd8101bfde280f497a5d964004da221b50
MD5 5ece803082de2da671cf97696c8c0215
BLAKE2b-256 0372a4aeb7f837ee6ebd7f857db582891b4f2820a247dc87af8fc784f2a01706

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 311.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.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 356e1c630ff31ada1f6acc459b40257cbc55acda6536111751db6c9b2dcb903c
MD5 0caa3f6ca123788436834daec41dd6f5
BLAKE2b-256 254a7b512628baff63371ccb9508cab0251e87e29c1921402e1ed0591db42abc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aff994e346944dc066a4f6644ab1a39fd2aa9b6d82fab2e8f6425932e1f8836b
MD5 493bc7ec4d17719b54ecfc7e7a10365d
BLAKE2b-256 df2095a71101f9713048d18c3f7a7ed58ad57b582d7e54eefc49b24cdf51df23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60312b3cc479ffa1cbe8ebc5a2eb2445b7cd029583bad1ce7ce56ae618571946
MD5 53ac787cd87a684e94677699cd316099
BLAKE2b-256 4b7aef65c643687b18e06839e3940be499bce80da30a2dba6da544d1a23414c7

See more details on using hashes here.

Provenance

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