Skip to main content

A Python wrapper for Swift code execution

Project description

swiftonpython swiftonpython là một thư viện Python giúp thực thi mã Swift từ Python, tích hợp linh hoạt để bạn có thể chạy mã Swift mà không cần biên dịch .so riêng biệt. Chỉ cần cài đặt và sử dụng ngay trong dự án Python.

Cài Đặt Đảm bảo rằng bạn đã cài đặt Swift và có thể truy cập từ dòng lệnh.

Cài đặt thư viện từ PyPI: Link github:

https://github.com/hqmdokkai/swiftonpython.git
pip install swiftonpython

Sử Dụng Sau khi cài đặt, bạn chỉ cần import thư viện và thực thi mã Swift trực tiếp từ Python.

Ví dụ sử dụng:

import swiftonpython

# Mã Swift bạn muốn chạy
swift_code = """
print("Hello from Swift!")
"""

# Gọi hàm để thực thi mã Swift
swiftonpython.swiftonpython(swift_code)

Vậy là xong! Mã Swift sẽ được thực thi trực tiếp trong môi trường Python mà không cần phải cấu hình phức tạp.

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

swiftonpython-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

swiftonpython-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file swiftonpython-0.1.0.tar.gz.

File metadata

  • Download URL: swiftonpython-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for swiftonpython-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6daaa9fc599b3bc5674130b4a1d754349a6faef0a499fe977a4efa163423a61
MD5 9fd1f5541067a64fe7b70edd710a0350
BLAKE2b-256 57a5d739d20b77340f8eea0ba303b1800596e921084d681cb538c4ad650862b6

See more details on using hashes here.

File details

Details for the file swiftonpython-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: swiftonpython-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for swiftonpython-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c873d05edf7a438038d2620abc3e59c0f747048c3d6e075303b211d4e69bce6d
MD5 3a92f4f03caac371c24d6405128702ef
BLAKE2b-256 c22310a72d54f5980cbdcb58b4ea71c6c64c068f501c484369bd1ed428ae8a11

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