Profinity V2 IS NOW IN EARLY ADOPTER RELEASE
Profinity V2 is available now in Early Adopter Release. To support this release we are making the documentation public. To get access to the Profinity V2 installers, please log a support request at the Prohelion Support Portal requesting access to the Early Adopter release.
Supported Languages
Profinity offers a versatile scripting environment that supports three powerful languages: C#, Python (via IronPython), and JavaScript (via Jint). Each language is integrated with the .NET framework, providing a rich set of libraries and tools to enhance your scripting experience. This guide will walk you through the core functionalities and provide insights into choosing the right language for your needs.
Profinity supports three programming languages.
Ultimately the choice of your preferred scripting language is up to you, Profinity supports three to help developers who are coming from different programming backgrounds, but the features and functions available are common across all three languages.
- Full .NET framework access
- Enterprise features
- Performance optimization | - More verbose syntax
- Requires .NET knowledge
- Longer development time | | JavaScript | - Simple syntax
- Quick development
- Familiar to web developers
- Lightweight | - Less type safety
- Limited to basic features
- Less suitable for complex operations | | Python | - Clean syntax
- Rich ecosystem
- Great for data processing
- Easy to learn | - Slower execution
- Less suitable for real-time operations
- Memory management considerations |
If you need even more power than Profinity Scripting provides then you can also call Profinity APIs to get the full access to all key Profinity functionality from your own tools.
C# Scripting
C# is a statically typed, object-oriented language known for its performance and scalability. In Profinity, C# scripts leverage the full power of the .NET framework, making it ideal for complex operations and enterprise-level applications. It is also the best language to use if you are looking to deeply integrate with Profinity itself as Profinity is written in C#.
C# scripts in Profinity are implemented as classes that inherit from base classes or implement specific interfaces. They provide strong typing and full access to the .NET framework.
C# is Best for:
- Complex operations requiring type safety
- Integration with .NET libraries
- Large-scale automation projects
- Performance-critical applications
- Enterprise-level solutions
C# Language Reference .NET API Documentation
Python (via IronPython)
Python scripts in Profinity use a procedural style with functions that are called by the system. They provide a clean, readable syntax and are excellent for data processing and automation tasks.
Profinity uses a C# library called IronPython to allow you to write Python code within the C# framework that Profinity is built on. IronPython brings the simplicity and readability of Python to the .NET ecosystem. It is particularly well-suited for data analysis, scripting, and rapid prototyping, offering seamless integration with .NET libraries.
If you want to use Python as your preferred programming language or want to integrate Profinity with other libraries written in Python, this is a good choice.
Python Is Best for:
- Data processing and analysis
- Complex data manipulation
- Scientific computing
- Integration with Python libraries
- Readable, maintainable code
IronPython Documentation Python Language Reference
JavaScript (Jint)
JavaScript scripts in Profinity use a more functional approach, with global functions that are called by the system. They provide a simpler syntax and are well-suited for quick scripting tasks.
Profinity supports JavaScript scripting, through the Jint interpreter, provides a dynamic scripting option within Profinity. It is perfect for web developers and those looking for a lightweight, flexible scripting solution and want to be able to create scripts in Profinity.
Best for:
- Rapid prototyping
- Quick automation tasks
- Simple scripts
- Web developers familiar with JavaScript
- Lightweight operations