Skip to main content

MicroJSON is a library for validating, parsing, and manipulating MicroJSON data.

Project description

MicroJSON

MicroJSON is a JSON-based format inspired by GeoJSON, designed to encode a variety of data structures related to microscopy images. It can handle representations of reference points, regions of interest, and other annotations, making it an ideal solution for conveying complex microscopy data in a straightforward, easy-to-use format.

Features

MicroJSON offers a range of features designed to meet the needs of microscopy data representation:

  • Flexible Data Structures: MicroJSON can represent diverse data structures, including geometries (such as points, multipoints, linestrings, polygons), features (individual entities with specific properties), feature collections (groups of features), and coordinate systems.

  • Standardized Format: MicroJSON uses the widely adopted JSON format, ensuring compatibility with a wide range of programming languages and tools.

  • Extensibility: MicroJSON can handle additional properties associated with specific features, such as metadata relating to microscopy images.

Additional Functions

There are two additional functionalities added which supports binary images. BinaryMicrojsonModel: Converts objects in a binary image into polygon coordinates (rectangle, encoding) and save them in json file format using microjson package. MicrojsonBinaryModel: Reconstruct binary images using polygon coordinates from json file.

Installation

To install MicroJSON, you can use the following command:

pip install microjson This will install the default version of MicroJSON with the basic functionalities and minimal dependencies. If you want to use the additional functionalities, such as provided by the utils module, you can install the package with the following command:

pip install microjson[all]

Usage

MicroJSON can be used with any application or tool that can process JSON data. Due to its design, it is particularly suited to applications related to the analysis, visualization, and manipulation of microscopy images.

External Resources

The GeoJSON test files are copied from the GeoJSON Schema GitHub repository, and are Copyright (c) 2018 Tim Schaub under MIT License.

Contribution

We welcome contributions to the development and enhancement of MicroJSON. Whether you're reporting bugs, suggesting enhancements, or contributing to the code, your input is highly appreciated.

License

MicroJSON is licensed under MIT License.


This project is maintained by Polus AI. For any queries or further discussion, please contact the author on email address above.

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

microjson-0.4.2.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microjson-0.4.2-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file microjson-0.4.2.tar.gz.

File metadata

  • Download URL: microjson-0.4.2.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for microjson-0.4.2.tar.gz
Algorithm Hash digest
SHA256 2c73cc6f578e21ea0e7b647c24385ec0994452d32abafe2cd5af068f20f346bf
MD5 8e232ea23757903f06e36e5ebb09a973
BLAKE2b-256 e6c2931777a57e2c7322cf5060fde2ad18924a0e15ddc58477af3891d5debbc6

See more details on using hashes here.

File details

Details for the file microjson-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: microjson-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 69.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for microjson-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 199e6f897b31cf51adeaac1acd976e5cb11ecbbf9f8d4730ad39014772b263f1
MD5 9ec7614897a4fd5bb44eb24687489e5a
BLAKE2b-256 acbe4764e15256e499902a0877116a77ddaaaac2e52c848efb35d037c20bfeb2

See more details on using hashes here.

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