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.4.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.4.0-cp314-cp314-win_amd64.whl (314.7 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.4.0-cp314-cp314-macosx_11_0_arm64.whl (409.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.4.0-cp313-cp313-win_amd64.whl (314.5 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.4.0-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.4.0-cp313-cp313-macosx_11_0_arm64.whl (409.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.4.0-cp312-cp312-win_amd64.whl (314.4 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.4.0-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.4.0-cp312-cp312-macosx_11_0_arm64.whl (409.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.4.0-cp311-cp311-win_amd64.whl (315.9 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (466.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.4.0-cp310-cp310-win_amd64.whl (315.8 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (465.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.4.0-cp310-cp310-macosx_11_0_arm64.whl (411.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: geddes-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 4f18849387bd22e3434e600c23554732c6836cb98375c1a640379ee1a73954ac
MD5 eeb88a35dbf8b437fd047d85ef7ba482
BLAKE2b-256 dbb16cf408d49005b801c8edcd24175c1de409194f9aae509f14feea12cf651c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.4.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 314.7 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.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2020fd78cac80fd167ec93b5c906ba401d543346b77c4519fb5d5d9ca7d45c6d
MD5 93475bd87db50d9cb9378ac5b15b33ad
BLAKE2b-256 0f4b3db4811cfaa87bd191fdee66917c1a4106368ab772c9fb8718eded08ad8f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 400372ae8bb605523a444cecd4370807afcbacffe75c599d02d00050b352c6d4
MD5 1ca5748a492be59295a2e4abaaccc458
BLAKE2b-256 a81e367696fdacfd1d522273b292bbdc9172a092e432a96ce369959e103d96a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c76fd68021ecbe419d8b0e60f8f132517a6dc584f1ce85efe5c41b0b4d4b61a
MD5 e8528bcb04950815e6af42a8b216017f
BLAKE2b-256 dcb1b596db5b5cab5a0be88a8ef584db1e2dc82fe35853b03521c0d26abca4f6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.4.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 314.5 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.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b8c38b61b48b74c77b47aea6975a11606d3a4f15de08de9478383e4de98a58d4
MD5 553bdbc4502f08b612c7b9fef1427bad
BLAKE2b-256 2e0c16c9a266dcea9a5cfd2c26ab9fb4bf1c22d3dd5818d4a4d66910c4740114

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22f33bcb87628cfc9cdc61a4c8725d4e8dcaf7c8e94b740bdd7f8bea9a39c484
MD5 9c7a8e67e9aa6579e2c8639cc07d0bc3
BLAKE2b-256 129d8631b001b6b80a63a9ff9e7521f59d8a58962495440f3a4dcfc2b70d8990

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2387a3fbef70aa31df99e42e0fd7ab4f3e2c91479e18efd497f85b285c73f4ad
MD5 ae63683ff52ca90defb463ab47651aad
BLAKE2b-256 ebeafb22e8098a3950045ffaffdc215f2bab9c7c875c0096ded3ebe5a3670393

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 314.4 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.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98bfbe565d556b86606dd6f259c9c2ac2d70eac459b78e7c87f0695fe9caaf5c
MD5 9514108e3b387db30b6f5c2f975206d0
BLAKE2b-256 7c6bc273986c35084275c83681c6e767fbc75905a67cb534915f21968718f954

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a4f08074c1efe518b4ebd6445323f8473ef438eaf239dde30af909ec956e132
MD5 d22d830f72e45b973ea290a4e167f539
BLAKE2b-256 f00b2cc4132028a06cf6772fed3598629cb624e8eeec624de76324366804fde8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12372b71f261671ae122a11aca9858892562ee860a5e9ad35b2d62ae3d521587
MD5 94a546fbd9f79f9f59495350ed6b1eb7
BLAKE2b-256 a6d659fee7e9caffbd6efac2693cfe7244c07e1034784d91e0e201ae342eaf64

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 315.9 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.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fadb4582b4dfa426aab5be68b611dcac482798f110c2ff3df0c0437b349cf58e
MD5 450113d38de8d71fc73200db3390a824
BLAKE2b-256 5bd7978af5dbb719b70802eec51a0b646fe8d9ed86a2c237aac36c09dd34e5ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b903b50a3aae1e8e106552746dbfb76e9552e24f204dfb5f157a661012d40bf8
MD5 e51434322289da80ad187eb9f317cda6
BLAKE2b-256 67414793c4239e3621564a0fb163788722ea621662704fe730bb16303a5b4afd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 caf2afd2d4460de38f7078caca9273b44e53700ad7fcbc68ecc5c4a5e0f41d3c
MD5 0028abb7d64e53d00056ad94d1f3fa2d
BLAKE2b-256 ea5280669b2d2292c36f18106087b97d18fc5155689812506768ae05418fa43f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 315.8 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.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b62cf8d786fdb2122791159eb39ef79a4076cbd3c5ce2b6ef1a1e7eaf819e437
MD5 e6489cd01f56f7f9eaecfbf84b4d7605
BLAKE2b-256 33c91fd686073f21a3e9ba8c49fec182520bc888458691f2944b82242c27abaa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7122dfbf78a8e865fdf27917f277377c2eb40412b1bb40516fd99521327fafb7
MD5 6ea5b8beb78e87cd0a7ec5f0afb450d1
BLAKE2b-256 eed034da77478dbafe5b4259da79ed6a42a50828163d181b7f1d190512d098ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a7df753bce3c16d25ac5fa74676b3d489051562231cd000bf9d5e6eab34b80f
MD5 a2afc9fef889c72a780390bb90d5d74a
BLAKE2b-256 97ee2f9ff6cb2b4b9b56b3512dc921c27b5f293da17cc119145d505c0a2a690f

See more details on using hashes here.

Provenance

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