Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Does Scripetd Connectors support modularization?

Solved368 views13th September 2024Scripted Connectors
3
Ömer Eryaman [DevOps Advocate]520 13th September 2024 0 Comments

Hello,

I have several files:

  • main.py
  • account.py
  • devices.py
  • activities.py

I call all these modules in main.py.

Does Scripted Connectors support modularization?

Or do I need to paste the code into one file? (like in the video & documentation)

https://docs.dataminer.services/user-guide/Advanced_Modules/Data_Sources/Tutorials/Data_API_GettingStarted.html

Thank you in advance.

Ömer Eryaman [DevOps Advocate] Selected answer as best 13th September 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
João Severino [SLC] [DevOps Catalyst]13.02K Posted 13th September 2024 1 Comment

Hi,

Data Sources does not support having multiple Python files linked to each other from the UI.

It only supports pasting the entire code into one file as seen in the tutorial as the primary goal of having a very straightforward way for a user to paste their code and be up and running.

If you want to use a modular structure to allow for the reusing of code then your best option is to have such files as libraries you would download with pip store them in the installation location and reference them from your main.py

Feel free to suggest in Feature Suggestions improvements that we can make to the Data Sources editor window as we are interested in knowing how our users will be using this feature.

Ömer Eryaman [DevOps Advocate] Selected answer as best 13th September 2024
Ömer Eryaman [DevOps Advocate] commented 13th September 2024

Thanks for the explanation. Would be nice to have modularization.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs