Skip to main content

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

tm1filetools-0.3.2.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

tm1filetools-0.3.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file tm1filetools-0.3.2.tar.gz.

File metadata

  • Download URL: tm1filetools-0.3.2.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for tm1filetools-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b1f5142cacb4f53a82777fac618248af7ff6ee70e8b049237257a5d14d30031a
MD5 8b54cc6ecedc7d4022f5804d9264fb69
BLAKE2b-256 5d2fe38da7a4d429cf834e2de83fb162bcf2c311bd4c3345fcaa89ab43e3efff

See more details on using hashes here.

File details

Details for the file tm1filetools-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: tm1filetools-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for tm1filetools-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2dc74fced00084dd70c610f9bcf58d915e55f169179c8bbb4783a601c74161f2
MD5 9935474df9467c07bd1ac7ed6e748f4b
BLAKE2b-256 cf5492fe75a4a6b055b0a017a4389da46b2775456e508a86953812dfc8d55ca6

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