A package for working with files created by a TM1 database.
Project description
A Python package that simplifies working with files associated with a TM1 server. It’s primarily useful for linting or cleaning up a server directory without a dependency on a running TM1 Server.
What it does
Scans a TM1 database folder and finds most TM1 related files (e.g. .cub, .rux etc)
Provides methods to rename and delete files and properties specific to a file type (e.g. the cube a .vue file refers to)
Return lists of “orphaned” files (e.g. a .rux without a corresponding .cub)
What it doesn’t do
Operations on binary files (e.g. it can’t read or edit a .cub file)
Genuine parsing of text files (e.g. it can’t verify whether a .rux is valid)
Interact with the REST API (use TM1py for that)
Installation
pip install tm1filetools
Example Usage
from pathlib import Path
from tm1filetools import TM1FileTool
path = Path("./data")
ft = TM1FileTool(path)
orphans = ft.get_orphan_rules()
...
ft.delete_all_blbs()
...
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
Built Distribution
Hashes for tm1filetools-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf47d7f5fe6ea85b5015126a6003ef914db5693ec380dd7043417af9d902ec77 |
|
MD5 | 8b144149798541f1374ff75d54d5478a |
|
BLAKE2b-256 | 575429fd701d2e6d751184ad6340ac602d383c49f54a06e1c6ab390380494161 |