Skip to main content

A Python library for parsing XRD pattern files

Project description

Geddes

Crates.io PyPI

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.7a0.tar.gz (182.8 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.7a0-cp314-cp314-win_amd64.whl (300.5 kB view details)

Uploaded CPython 3.14Windows x86-64

geddes-0.1.7a0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

geddes-0.1.7a0-cp314-cp314-macosx_11_0_arm64.whl (401.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

geddes-0.1.7a0-cp313-cp313-win_amd64.whl (300.1 kB view details)

Uploaded CPython 3.13Windows x86-64

geddes-0.1.7a0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

geddes-0.1.7a0-cp313-cp313-macosx_11_0_arm64.whl (401.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

geddes-0.1.7a0-cp312-cp312-win_amd64.whl (300.1 kB view details)

Uploaded CPython 3.12Windows x86-64

geddes-0.1.7a0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (456.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

geddes-0.1.7a0-cp312-cp312-macosx_11_0_arm64.whl (401.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

geddes-0.1.7a0-cp311-cp311-win_amd64.whl (301.7 kB view details)

Uploaded CPython 3.11Windows x86-64

geddes-0.1.7a0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (458.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

geddes-0.1.7a0-cp311-cp311-macosx_11_0_arm64.whl (402.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

geddes-0.1.7a0-cp310-cp310-win_amd64.whl (301.6 kB view details)

Uploaded CPython 3.10Windows x86-64

geddes-0.1.7a0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (458.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

geddes-0.1.7a0-cp310-cp310-macosx_11_0_arm64.whl (403.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: geddes-0.1.7a0.tar.gz
  • Upload date:
  • Size: 182.8 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.7a0.tar.gz
Algorithm Hash digest
SHA256 b870eade37fcad76527da5ec65d4686d4ef412c7b9bb51736f46471c64ad565c
MD5 f55abbe44f5c9a7a59d0ea2e58bc463e
BLAKE2b-256 d6cea9340d475042341e6ad6f4483c4699abd61d638908a94b7b965bc1087739

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7a0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 300.5 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.7a0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f2d5a0857532792adfbed860f33d37dd7ed393a7b41e6df3cb1e7167bbad151c
MD5 fb34b9c8814f48e68e130602319d16fd
BLAKE2b-256 f46ad9bd6aaa42a1f5522cf2c93d93d1249dc7e01781597ce21f3a434292df29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27265d164646e16b941c85c10295a3a45473363e42b9d1bb835c802a2ed82005
MD5 b8d0d8f3f4c90e90b793a1162209a781
BLAKE2b-256 687a2ca8e9bea959d7d412dd23169953242e6ef9b8189a15c97aa1142cf0e63a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4d0bc5e5c6a34576242ea3fb529d2dcd1bae54bc6150c79293ca361eff48bb6
MD5 0462889c56bac6de96071bf0350efa8a
BLAKE2b-256 fb7f88083c64d311df89cf4cbbf52339a2a11e5fda3b931c43ec8d966ab58d77

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7a0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 300.1 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.7a0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 be80ca5749d3f5d941d821f2cece22c8aa5eaf42297723e2a39e7e6e3c2a3403
MD5 e92da305329e6de6770bf5c726345a95
BLAKE2b-256 0553dd27bf7d86fa9f7d6ee0f69a98cea1c307b6f69d2d3e36485419cf84b85f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec73116f688f2bfb1a80ef75762d532062e05501f0532efe1c4f866c9c24c1c0
MD5 161ffbdc047f787e38f450f589e76b8c
BLAKE2b-256 dbb30c03d489edde223e22244b89cc598b884a2960c06a695895b1f7752626ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6fb013089e7fda7cf87f058d3d340fbc2fa988ba5f7d17ce60756fcd4ef4f1d
MD5 0b31685fc40c159a71ea66c27f073208
BLAKE2b-256 b070efcf79eb845c2729e7d84803ec4932aefded761b9ffb204253a3911d95e6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7a0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 300.1 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.7a0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 220690396ab4ede5d8809d7be37b7d839343c0d28b8fe5512be9a176cb4894f7
MD5 19009d618dc2ada83accc77988f36545
BLAKE2b-256 f8ca2fb14ed5a79eb565f5ca48de4f9ccb05f8f9c7f82f201b378ae7255fd73e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 465ee1caa84913e3fa8ffca908bc0185e401930d5df1a42f3d0ce7d30025054c
MD5 e1e1f70a0e345ee9c5a2588c564fe699
BLAKE2b-256 b132b87ae567b21a7440d2172c1b8ffe3ca9b6dedab458f8d6215b464b7d7547

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f84f2297c9ae2fa0816eea2494add791c13cfe2d1bdfd499195c7d8b76bbc58a
MD5 0750edadad4dce126c47f81fddd98f8e
BLAKE2b-256 c6cb27a3f4a20030cc40ebd8587ccdb9d9d32b1e79611d4f1ee9e76185f7e9ba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7a0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 301.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.1.7a0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc33e3a01bab74e99e0a6c40a4cced9058829db9a3f2e135606f16c5117cba7e
MD5 6b28198a419d2e21c23fc383292db32e
BLAKE2b-256 f928902fe7b951c8c7cd28450804de81b80af35f10aff7b523fb0e9e31252315

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a068b20ca37a2e53a4838aae016cdacafdab6635e52242dfa5b089c9c39cf9ea
MD5 f752a5757064cb3ba72635e8130b1c65
BLAKE2b-256 f40c27af7e6118dcc0b3545ae46200ae2b71b3118e5c1149f2c9c053fdd1cbf4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 434be2e6bb1d1af0c76233d004af6b4f2655749b1b76c8a322f4b040c3062084
MD5 03a9d308ab8a73aa8b2de572abe5c0a7
BLAKE2b-256 f29bcefe19d045288ac090e883c8dfc185ab0170810dbe52c3eabaea7a03d61c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: geddes-0.1.7a0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 301.6 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.7a0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b12efe6a2dd6cbf5029c10e7314a043874ea229c35be122f8b04275b67efd3b8
MD5 3f6d38ae43ae861a6615ab84c4e1f3cf
BLAKE2b-256 7dc575c4225cafe35365700fde4cdbc58d9dd6923877d2de1218a231720bdfee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2697e5df55ca6ef0e42e22389db0f5496735c419bfdb65733f2c9015a92e804e
MD5 27f9abf0822026162a84fa9f63653636
BLAKE2b-256 6e03950b21c10f7143280cb58304b8b8b8d27c70af2ea0eed71027b6d85567cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for geddes-0.1.7a0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5554ff5eba5dd2acfc83cc33b08989e93427f7bbc08585b74da6259b149e2883
MD5 9bec9c175ab53d9e38575d6e59e585bd
BLAKE2b-256 5d316b118d50abdaa83aad782d68899cb533e54a7fe489625ffd1cf32d27c5dc

See more details on using hashes here.

Provenance

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