Skip to main content

CIFT banner

CIFT

Caltech Intermediate Form parser in pure Python

Under construction

Currently, CIFT is a utility for use in unit tests of RAIMAD, a different project I am working on. As such, it is only guaranteed to support CIF files that RAIMAD produces, and not all CIF files in general.

Turning CIFT into a general-purpose CIF parser is a long-term future goal.

Roadmap

  • Complete this roadmap
  • Parsing Variants
    • Strict (according to 1 ) parsing
    • Klayout-like parsing
      • "lenient" layer names working, unclear whether this corresponds 1:1 with kalyout
  • Basic parsing
    • P (polygons)
    • B (box)
      • rotation
    • Comments
      • Maybe? Untested
    • Subroutines (DS and DF)
    • Translation and rotation (subroutines)
  • Inspection
    • Get CIF file as a list of geometries on each layer
    • Get CIF file as a tree representing subroutine calls

Overall Goals

  • Pure Python, no dependencies
  • easy to understand code
  • mypy --strict has no complaints

Contributing

If you'd like to contribute code, please do so by making a fork, comitting your changes, and creating a pull request.

We have unit tests. Run them with python -m unittest from the root of the repo.

Name

  • "CIFT", pronounced like "sift". Think of putting a CIF file into a sieve and letting the syntax crystallize into grains of sand that fall away to reveal the geometries it represents.

License

cift is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License only.

cift is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with cift. If not, see https://www.gnu.org/licenses/.

Note: Previous versions of cift were released under different licenses. If the current license does not meet your needs, you may consider using an earlier version under the terms of its original license. You can find these versions by browsing the commit history.


Copyright (c) 2025, maybetree.

Works Cited

  1. Sproull, R., & Lyon, R. (1980). The caltech intermediate form for LSI layout description (Technical Report No. 2686). California Institute of Technology, Computer Science Department, Silicon Structures Project. ↩

Metadata

Release files for cift 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cift 0.1.4
File Size Uploaded Provenance Actions
cift-0.1.4.tar.gz 27.0 kB Without provenance Details for cift-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cift 0.1.4
File Interpreter ABI Platform Actions
cift-0.1.4-py3-none-any.whl Python 3 none any Details for cift-0.1.4-py3-none-any.whl

Total release size: 53.1 kB

Release files / cift-0.1.4.tar.gz

Download URL cift-0.1.4.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eb4b3c235723df308717ff531ac31ea091b9ea55a1dbacc25d03ada2f686fa36
BLAKE2b-256 checksum
How to use checksums
db55f5af232c5b0eae2fa5ffd7fb001ccced36dc97d44bd9bc241f29b39a89e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / cift-0.1.4-py3-none-any.whl

Download URL cift-0.1.4-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74ba0fab9142d4e3351765d29e78f06f99cd7d9d49f5fd6ec80fc8cdb07ce767
BLAKE2b-256 checksum
How to use checksums
20222df8dc4923f63f98ba8524a0be580693785dde6aaa71b7e918de8a5c36a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for cift 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page