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.3.0.tar.gz (214.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.3.0-cp314-cp314-win_amd64.whl (314.2 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.3.0-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.3.0-cp314-cp314-macosx_11_0_arm64.whl (413.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.3.0-cp313-cp313-win_amd64.whl (314.1 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (413.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.3.0-cp312-cp312-win_amd64.whl (314.0 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (412.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.3.0-cp311-cp311-win_amd64.whl (316.0 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (467.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (415.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.3.0-cp310-cp310-win_amd64.whl (316.0 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (467.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (415.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for geddes-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a920aceb30d745bf388dc7ac90735b473527253eccb6afaec70cc73af8f093d9
MD5 7d267eb4d42200b8a7677b2fec615d8b
BLAKE2b-256 54c05067db54497910230b4e3842403da8611e88030c1f15b925ecf1a6d0e625

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.3.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 314.2 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.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 030f2549aaf98b81c4268ad2b0be514229d2280b7db2855a7d0c5c591ccf68e3
MD5 0af7e1c4ae57050586fdf82fd3bffe0e
BLAKE2b-256 bc2fa37a335b793d4c46371c55726997013027eba273148a647aaf5769e09a65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1cc0ad841316526870a48dd456016f99b3ca8d9c8b74323d2ea998a958ac5ca1
MD5 6dbc02e87825b5a1e5aeda248aaa4021
BLAKE2b-256 3b6f998f1a81f5c787cabd4ce5e02fd4a1df311bc819e3b121989c9eb171b063

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb53f396f25a90cedbf0d958d0a63ee812bacb5c1b355d4a74b96cc205282e55
MD5 bf3199ad2d0cea030b381ebff12a4bfe
BLAKE2b-256 0125ec0ef05be42fef07f7b283f289623a9599a589f993552d81dfaad3a645e1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 314.1 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.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 eedf6a5657f04206d7a5e0f2c4bfa36d45f3a63ada8e27b3e681a1dbdfbd0f5b
MD5 89e7450264f0eb9eef5d7b7f3c5945bd
BLAKE2b-256 064df3385dcbde5cd868699c3db5a117da60b3426ad3c05ac284e0699d38fa52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8ef9b92786bb6237868dfa2c9cd067084e16ca27bc8e55ed86502fbfd4400e0
MD5 5f6adcd4b636e789b45c36ad660686e3
BLAKE2b-256 55811e1cd93c65ebb9a7119f23955767feeb7fefecb4b893f77a9e2821be9df7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4963e87824279349cc8df39163e3ae6ae378c6011cd2ddbd619834c26a5c2eed
MD5 42ab4d625ec1f25ac994f06b22a81d01
BLAKE2b-256 e800e55b7895e34182df3cb0f885cbb39e134208d172e0fe85a7eceee321a4bf

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 314.0 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.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76607443f414f672fc59b04bd38604ad64bbdaf4dc103b237e64bf9368bc1201
MD5 a2447f7e4b9f74c095ae57dddb44a39a
BLAKE2b-256 fd6b2bae60ff710c2bc14798b2c1320e2cb6b3fc13b5918d421ba9057a3da609

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b618f746a9b730f1fe03ba5abd218383693f21d65aabc2db763cef1687a74439
MD5 251fa124ce3900d46feab4358796a5e5
BLAKE2b-256 cf3ca012495c31aeed8eae1e3f50657008be32c2f2f5c0a5df09d106fb5598a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 620a003399d55797272b368f116c95e477e22ebc3cd653599d60d1c18fee86db
MD5 89c9c0a8932d20a288229bd206b46b1f
BLAKE2b-256 f58966a2dfd38b10086e3c6ad8689443f54fa00c6ea15d7386db86023afdb1bd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 316.0 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.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 da8923cd00aede141b23e57999c954c8c0c3271c123fc5ee99dede2093b44f30
MD5 216e384f8734ad03ba80d252a22264af
BLAKE2b-256 958527b4bdbd19c37f3cacd0bb54323f8d637fa1ff4a90604c9880b5ce54fcce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd87ff7eff5dcf7df277c40189561dac07ddf55bd7b79d1468ef6006e12be976
MD5 c07cd02ac2ccfbbef1de32aeabdb1240
BLAKE2b-256 c29e87d6f4f7eeffc866cd422bc2bc9ff088c6fe381860ecfaf73650d5e83b01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a68326c8db5c3915bc4b5480e0e38a3b10ffa6fd2d9681db5c62ada064c4195
MD5 85eb44ec699a0eca282d4d53343f69a5
BLAKE2b-256 4f75943c7e0ad319d0d5d8a2cade1cc9b9174510b9a7d79a24eb68e92b9049d2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 316.0 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.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa0adb1a8c7395bd43f4beaefe6e8b4e8e3c3f5a845dbd6d8f95b8a6dbe6d36f
MD5 0b798512894becbd835666613d6396ec
BLAKE2b-256 e76328200a4c376edfe3922d249363bd0425eaeb16ff98589a676cdbfb14893a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b88109814d8f91d32f8a6542110db9bd3807ac2aaa93f51720dea81cec259266
MD5 894aa9cc78b5576f22d9288a492aa8fe
BLAKE2b-256 99de39092a6cef2249c2c1c97e2b21451404ae317b7d3fa99fff55e481a51fab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f81f13cad3cfcb8df30ac3a68b565e2578e5f90295ea8c603e3afb493e20180
MD5 59c44f23792e93b8d5e53f92714f19b2
BLAKE2b-256 7854f8b9a3e2a63ed15f48ea72131f569eb4062a532a785758bd4eaea4177bef

See more details on using hashes here.

Provenance

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