UniPy

Let's develop apps while converting Python code to Swift or C#.

Download Now »

Go Support Page »

Runs on your Mac

In UniPy, all conversion from Python to Swift/C# is done locally. No AI functions are used. Even with a long source, the output from the same input is always consistent. No information is sent to the Internet, so there is no need to worry about source code leaks during development. (*Not all grammar conversions are supported. Please check the support page for details.)

Trial-and-error

UniPy is sold as a one-time purchase app. There are no limits on the amount of code you can convert, and no additional fees based on the number of lines or characters you convert. You can perform the conversion process as many times as you like and proceed with development through trial and error. Even if you decide to stop using UniPy, you can continue development with the converted Swift/C# source code, so it won't be a waste.

No runtime engine required

After conversion, the source code will be pure Swift/C#, with no black boxes. Therefore, UniPy does not suffer from unavoidable runtime bugs caused by third parties, which tend to occur when third-party development software is used in the development process. You can deal with all bugs as Swift/C#, just like when not using UniPy.

Python to Swift conversion

You can use Python to develop native apps for iPhone and Mac and distribute them on the app store.

UniPy is primarily designed to create user interfaces with SwiftUI. Trailing closures characteristic of SwiftUI are supported and converted to natural SwiftUI code.

(*Not all Swift writing methods are supported. Please check the support page for details.)

Python to Swift Python to Swift Python to Swift

Python to C# conversion

You can use Python to develop Unity games and distribute them on the store.

UniPy was originally developed as a migration path for games written in the Boo language, which Unity no longer supports. Unlike Boo, which has its own syntax, the Python you write for UniPy will be 100% valid Python syntax. This means that you can use the IDE's Python support as is.

(*Not all C# writing methods are supported. Please check the support page for details.)

Python to C# Python to C# Python to C#

Lots of example code included

The app comes with over 20 examples that show three things: the actual operation screen, the Python code before conversion, and the Swift code after conversion.

Each example features a SwiftUI UI part, so you can create a UI part catalogue and use it to create your own app by copying and pasting from there.

Examples

Comfortable typing with IntelliSense

As a bonus, SwiftUI and UnityEngine API stubs are included.

UniPy uses syntax that is 100% compatible with Python, so when combined with stubs you can program comfortably while receiving IDE support, like when writing in native Swift or C#.

(*The stubs do not cover all APIs. Only the APIs included in the definitions in SwiftUI.swift in Xcode 13, and under the UnityEngine namespace in the script reference in Unity 2021.3 are included.)

Intelisense

Highly recommended for ...

I always want to develop smoothly in the Python syntax I am accustomed to writing and in my usual habits.
It is annoying that logic thinking is interrupted to recall Swift/C# syntax.
I want to develop and distribute iPhone/Mac apps, but learning Swift is a hassle.
I want to develop and distribute a game using Unity, but learning C# is a hassle.
The server side is written in Python, and I want to share the business logic code with the client side.

Maybe it's not suitable for ...

? I want to port an existing Python program that uses Python libraries to Swift/C#. (※1)
? Once the conversion process is passed through, I intend to proceed with development using Swift/C#. (*2,*3)
? I want to program without being aware of variable initialization and types. (*4)
? I write Python code without using a linter and in a way that does not follow PEP8. (※5)

※1: UniPy does not allow Python libraries to be used directly in Swift/C#.
※2: If you only need to convert an existing PG once, an AI language conversion function may be more suitable.
※3: UniPy is primarily intended for use in Python until the end, completing development while converting.
※4: In UniPy, specifying the type is mandatory when declaring a variable, using the type hint syntax of the typing module.
※5: Mainly, UniPy cannot parse correctly if "whitespace characters in expressions and sentences" do not comply with PEP8.



UniPy Icon

Let's get started.

Make Swift and C# Pythonic with UniPy starting today.


Download on the Mac App Store »