A package for working with files created by a TM1 database
Project description
TM1 File Tools
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,.ruxetc) - Provides methods to rename and delete files and properties specific to a file type (e.g. the cube a
.vuefile refers to) - Return lists of "orphaned" files (e.g. a
.ruxwithout a corresponding.cub)
What it doesn't do
- Operations on binary files (e.g. it can't read or edit a
.cubfile) - Genuine parsing of text files (e.g. it can't verify whether a
.ruxis 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
tm1filetools-0.3.1.tar.gz
(17.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tm1filetools-0.3.1.tar.gz.
File metadata
- Download URL: tm1filetools-0.3.1.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1acfc779673bb9ed224796b6dd11177b60cbab3582e2c24e3d931a8795fa77
|
|
| MD5 |
c896c1284088dce3102acda336669a8b
|
|
| BLAKE2b-256 |
a2a72bac5126059b57aadc39e33cb46106fb926ce167706c71773864424a472e
|
File details
Details for the file tm1filetools-0.3.1-py3-none-any.whl.
File metadata
- Download URL: tm1filetools-0.3.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb8bb4e6c6be88373b5d4eba243e55fed12e221a70eab53796eacd2052e496f
|
|
| MD5 |
8a68b47a3dbd918d9df136cdef843177
|
|
| BLAKE2b-256 |
79bf9dcffdc66abc941c821e82aab5f1f0ee52ea593a95b4444d6a54bdd33f00
|