Skip to main content

rct-modelpool

Installation

You can git install rctmodelpool via pip:

pip install git+https://github.com/rct-ai/rct-modelpool

or

pip install rctmodelpool

Usage

You can import the rctmodelpool.modelpool from the package like so:

sync_model

from rctmodelpool import modelpool

path = modelpool.sync_model("rcthub://CPM.csv")
print(path)

sync tgz

import os
import tarfile
from rctmodelpool import modelpool
from pathlib import Path

local_path = modelpool.sync_model("rcthub://"+config.bert_model_path)
parent_path = Path(local_path).parent
print("rcthub sync:",local_path)
modeltar = tarfile.open(local_path)
inside_folder = os.path.commonprefix(modeltar.getnames())
real_model_path = os.path.join(parent_path, inside_folder)
print('model folder:', real_model_path)
if not os.path.exists(real_model_path):
    modeltar.extractall(parent_path)
    print('tar extraction:', parent_path, local_path)

Metadata

Release files for rctmodelpool 0.1.9

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

Source distribution (sdist)

Source distribution for rctmodelpool 0.1.9
File Size Uploaded Provenance Actions
rctmodelpool-0.1.9.tar.gz 6.7 kB Without provenance Details for rctmodelpool-0.1.9.tar.gz

Built distribution (wheel)

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

Total release size: 15.1 kB

Release files / rctmodelpool-0.1.9.tar.gz

Download URL rctmodelpool-0.1.9.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
08234411664f3a593019bd8c166880b91f677aa7ba7dc6b851f2ca023397efb0
BLAKE2b-256 checksum
How to use checksums
f4f352dd68777467fc833bb883cad18577ecdb1114927fbcaafa5379def622a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Release files / rctmodelpool-0.1.9-py3-none-any.whl

Download URL rctmodelpool-0.1.9-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d86ae55c76f380d5bfa2ad143232e5b0109e2e23b90a5be3e320a3bcf19105bc
BLAKE2b-256 checksum
How to use checksums
118a7caefd0aff4378888b7bdcbbd0e67e30dd48535f0b39fce81c0533a29696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Security for rctmodelpool 0.1.9

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