okio
kotlinx-cli
Our great sponsors
okio | kotlinx-cli | |
---|---|---|
15 | 8 | |
8,659 | 893 | |
0.5% | 0.7% | |
8.9 | 4.9 | |
5 days ago | 8 months ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
okio
-
Is it a good idea to use Google Guava library for Android development?
I am involved in the development of Android application which is a rather "thick" mobile client for a Web service. It heavily communicates with the server but also has a lot of inner logic too. So, I decided to use some features of Google Guava library to simplify development process. Here is a list of features I'm very interested in: immutable collections, base utils, collection extensions, functional programming sugar and idioms (common.collect and common.base), primitives utilities (common.primitives), hashing utilities (common.hash), concurrent utils (futures and AsyncFunction). Things I don't want to use in Android: common.cache (see question below), common.eventbus (we have better Android specific libs for this, such as Otto), common.io (we can use okio for Android now).
-
Why tools have Kotlin native to work with bytes?
Yeah Kotlin's own standard library is a lot smaller than Java's currently so you'll need to use something third-party for this. Okio is a popular option https://square.github.io/okio/ it has a Buffer type which is pretty similar to Java's ByteBuffer
-
can I access and manipulate the iOS filesystem with kotlin multiplatform?
Use okio, it is Multiplatform now. I use this for my own library KStore
-
Windows Central: "Microsoft to merge Surface Pro X ARM and Surface Pro 9 Intel versions under one product line"
For networking, file IO, and streams in general, there's Korio and for Java; for just networking, there's LiteNetLib for C#; for what looks like data streams in general, there's Okio also for Java; and Tokio for multi-threaded IO in Rust.
-
Porting C++ code to Kotlin (ISO 15765-2)
Okio is nice for input/output streams, and sockets.
-
Kotlin/native: library for file io?
Sounds like you want https://square.github.io/okio/
- Are there any libraries well suited to the manipulation of bits, bytes and byte arrays used in packet communication?
-
Kotlin Team AMA #3: Ask Us Anything
On JVM, there is plenty of existing solution already on for multiplatform uses I'd suggest checking amazing Okio library by Square, that seems to cover most of basic use-cases.
- 60% of school apps are sending student data with third parties without consent
-
Kotlin Multiplatform - File I/O and de-compression questions
I think the main multiplatform library for I/O currently is okio, https://github.com/square/okio. As for compression, you should probably create an expect class for the compressor and use platform specific calls for actual compression. Take a look at https://kotlinlang.org/docs/mpp-connect-to-apis.html.
kotlinx-cli
-
com.lihaoyi Scala: Executable Pseudocode that's Easy, Boring, and Fast
In Kotlin, I've been having a great time with kotlinx-cli. No macros involved or magic involved, and it's closer to the author's own ideals.
-
Guides for Kotlin scripting use case
(And some less good ones https://github.com/Kotlin/kotlinx-cli, despite being official)
-
How can I make my class more reusable?
Not exactly sure what you're doing, but check out https://github.com/Kotlin/kotlinx-cli which is an official multiplatform solution for parsing incoming options. If you can use it in your case, great! If not, you might at least be inspired by the API (and how extensive even a "simple" idea can get).
-
New Project: CLI to transform Excel spreadsheets to JSON (in Kotlin)
For CLI programs in Kotlin, I suggest taking a look at kotlinx-cli or, especially, Clikt, for idiomatic Kotlin code without annotations and such. Of course, after having already written the program, you're most likely not gonna switch that out, but I just wanted to inform you about that.
-
Cli frameworks for Kotlin
What about the official command line parser from jetbrains? https://github.com/Kotlin/kotlinx-cli
-
Absolute beginner - readLine() convert input to Int
I think, you can use libs for that. ex: Clikt, kotlinx.cli, picocli
-
Started Learning Kotlin 3 days ago, this is my first little project
Nice work! Welcome to Kotlin, it’s quickly becoming my favourite language. (Former PHP, current Java dev here). You should check out https://github.com/Kotlin/kotlinx-cli if you want to take it to the next level.
-
Is Kotlin Native ready for CLI tools development ?
There is https://github.com/Kotlin/kotlinx-cli but you'll have to weigh this against quality and completeness of third party efforts as you've already discovered (in any case you'll probably need multiple libraries).
What are some alternatives?
OkHttp - Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
clikt - Multiplatform command line interface parsing for Kotlin
kotlinx.coroutines - Library support for Kotlin coroutines
picocli - Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
kotlinx-io - Kotlin multiplatform I/O library
cobra - A Commander for modern Go CLI interactions
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
maven-mvnd - Apache Maven Daemon
kotlinx-nodejs - Kotlin external declarations for using the Node.js API from Kotlin code targeting JavaScript
kscript - Scripting enhancements for Kotlin
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
ionos-dyndns - dyndns daemon for ionos domains