pytrain-ogr-api

v2.16.3 safe
2.7
Low Risk

Restful API to control Lionel TMCC/Legacy engines, switches, and accesseries from a Raspberry Pi

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 9 test file(s) found

  • Test runner config found: conftest.py
  • 9 test file(s) detected (e.g. __init__.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (12674 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 181 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

✓ Outbound Network Calls

No suspicious network call patterns found

⚠ Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • ) fake_state_type = __import__("src.pytrain_api.pytrain_component", fromlist=["EngineState"]).EngineState self.engine._state_store.query.return_v
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • # restart service os.system("sudo systemctl restart pytrain_api.service") else:
  • # always update pip os.system(f"cd {os.getcwd()}; pip install -U pip") if is_packa
  • upgrade from Pypi os.system(f"cd {os.getcwd()}; pip install -U {API_PACKAGE}") e
  • grade from github os.system(f"cd {os.getcwd()}; git pull") os.system(f"cd {o
  • wd()}; git pull") os.system(f"cd {os.getcwd()}; pip install -r requirements.txt")
  • '} upgrading...") os.system("sudo apt update") sleep(1) os.syste
⚠ Credential Harvesting score 7.5

Found 3 credential access pattern(s)

  • v(find_dotenv()) SECRET_KEY = os.environ.get("SECRET_KEY") SECRET_PHRASE = os.environ.get("SECRET_PHRASE") if os
  • "SECRET_KEY") SECRET_PHRASE = os.environ.get("SECRET_PHRASE") if os.environ.get("SECRET_PHRASE") else "PYTRAINAP
  • viron.get("SECRET_PHRASE") if os.environ.get("SECRET_PHRASE") else "PYTRAINAPI" API_TOKEN = os.environ.get("API_
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with pytrain-ogr-api
Build a simple Python application using the pytrain-ogr-api package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!