Pythonic.swift alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view Pythonic.swift alternatives based on common mentions on social networks and blogs.
-
SwifterSwift
A handy collection of more than 500 native Swift extensions to boost your productivity. -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
R.swift
Strong typed, autocompleted resources like images, fonts and segues in Swift projects -
SwiftGen-Storyboard
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
swift-protobuf
Plugin and runtime library for using protobuf with Swift -
Dollar
A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript -
ExSwift
a set of Swift extensions for standard types and classes. -
DifferenceKit
💻 A fast and flexible O(n) difference algorithm framework for Swift collection. -
EZSwiftExtensions
:smirk: How Swift standard types and classes were supposed to work. -
Result
Swift type modelling the success/failure of arbitrary operations. -
DeepDiff
🦀Amazingly incredible extraordinary lightning fast diffing in Swift -
Device
Light weight tool for detecting the current device and screen size written in swift. -
SwiftLinkPreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images. -
WhatsNew
Showcase new features after an app update similar to Pages, Numbers and Keynote. -
Codextended
Extensions giving Swift's Codable API type inference super powers 🦸♂️🦹♀️ -
Popsicle
Delightful, extensible Swift value interpolation framework. -
SwiftyJSONAccelerator
macOS app to generate Swift 5 code for models from JSON (with Codeable) -
Playbook
📘A library for isolated developing UI components and automatically taking snapshots of them. -
ReadabilityKit
Preview extractor for news, articles and full-texts in Swift -
ObjectiveKit
Swift-friendly API for a set of powerful Objective C runtime functions. -
Compass
:earth_africa: Compass helps you setup a central navigation system for your application -
Solar
A Swift micro library for generating Sunrise and Sunset times. -
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift -
Rugby
🏈 Cache CocoaPods for faster rebuild and indexing Xcode project -
SwiftyUtils
All the reusable code that we need in each project -
BetterSafariView
A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI. -
SwiftPlantUML
A command-line tool and Swift Package for generating class diagrams powered by PlantUML
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Pythonic.swift or a related project?
README
Pythonic.swift
Pythonic.swift is a Swift library implementing selected parts of Python 2.7's standard library and making them available to your Swift code.
import Pythonic
allows you to write Python flavored code such as:
#!/usr/bin/env swift -I .
import Pythonic
if re.search("^foo", "foobar") {
print("ok!")
}
if any(["foo", "bar", "zonk"]) {
print(chr(ord("a"))) // a
}
var strings = ["foo", "bar"]
print(":".join(strings)) // foo:bar
if strings {
print(strings[0]) // foo
}
if len(strings) == 2 {
print(strings[1].upper()) // BAR
print(strings[1].split("a")) // ["b", "r"]
}
var greeting = " hello pythonista "
if greeting.strip().startswith("hello") {
print(greeting.strip().title()) // Hello Pythonista
}
var numbers = [1, 2, 3, 4, 5]
print(sum(numbers)) // 15
print(max(numbers)) // 5
See the test suite Pythonic-test.swift and the Swift syntax checker for more examples. Questions? Get in touch on Twitter @practicalswift.
Getting started
git clone https://github.com/practicalswift/Pythonic.swift.git
cd Pythonic.swift/src/
make
make test
mkdir my-pythonic-app/
cd my-pythonic-app/
cp ../Pythonic.swiftdoc ../Pythonic.swiftmodule ../libPythonic.dylib .
cat << EOF > my_pythonic_app.swift
#!/usr/bin/env swift -I .
import Pythonic
assert(" hello ".strip() == "hello")
println("This feels really.. Pythonic!")
EOF
chmod +x my_pythonic_app.swift
./my_pythonic_app.swift
Contributing
Code contributions are more than welcome! This is the quick guide to contributing:
- Fork the project
- Implement function
foo
from the Python standard library - Add a test case for
foo
inPythonic-test.swift
- Make sure the test case passes in both Python and Swift by running
make test
- Submit a pull request
- Repeat until we're done :-)