Skip to main content

A CRM-1 repository exploration package

Project description

crm1 Python package

This package is a Python implementation of the CRM-1 specification.

You can find the specification here.

Installation

You can install the package using pip:

pip install crm1

Usage

"""Usage example for the crm1 module."""

from crm1 import Repository, RepositoryPool, autorepo, utils

repo1 = Repository("https://crm-repo.jojojux.de/repo.json")
repo2 = "https://repo.crmodders.dev/repository.hjson"

pool = RepositoryPool()
pool.add_repository(repo1)
pool.add_repository(repo2)

repos = autorepo.get_all_repos()
pool2 = utils.make_pool(repos)

mod = pool.get_mod("dev.crmodders.flux")
print(mod.meta.name)

mod2 = pool.get_mod("com.nikrasoff.seamlessportals")

for dep in mod2.depends:
    dep.id = "dev.crmodders.flux"
    print(dep.mod)
    print(dep.resolve(pool))
    print(dep.mod.meta.name)

Everything is typed and documented, so you can use your IDE's autocomplete and documentation features to explore the functionality of the package.

License

This package is licensed under the MIT license. You can find the full license text in the LICENSE file.

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

crm1-0.0.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

crm1-0.0.1-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page