{"id":19437274,"url":"https://github.com/ctongfei/poly-io","last_synced_at":"2025-02-25T07:14:25.411Z","repository":{"id":57736738,"uuid":"43699752","full_name":"ctongfei/poly-io","owner":"ctongfei","description":"The missing I/O library for Scala","archived":false,"fork":false,"pushed_at":"2017-01-21T03:26:53.000Z","size":69,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T21:17:05.504Z","etag":null,"topics":["io","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctongfei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-05T16:56:38.000Z","updated_at":"2017-01-03T20:21:41.000Z","dependencies_parsed_at":"2022-08-24T14:57:21.830Z","dependency_job_id":null,"html_url":"https://github.com/ctongfei/poly-io","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctongfei%2Fpoly-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctongfei%2Fpoly-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctongfei%2Fpoly-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctongfei%2Fpoly-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctongfei","download_url":"https://codeload.github.com/ctongfei/poly-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619450,"owners_count":19830206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["io","scala"],"created_at":"2024-11-10T15:14:14.845Z","updated_at":"2025-02-25T07:14:25.369Z","avatar_url":"https://github.com/ctongfei.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Poly-io \n\n[![Travis CI](https://img.shields.io/travis/USER/REPO.svg?style=flat-square)](https://travis-ci.org/ctongfei/poly-io)\n[![Maven Central](https://img.shields.io/maven-central/v/me.tongfei/poly-io_2.12.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/me.tongfei/poly-io_2.12)\n[![Scaladoc](https://img.shields.io/badge/javadoc.io-v0.3.2-ff69b4.svg?style=flat-square)](https://www.javadoc.io/doc/me.tongfei/poly-io_2.12)\n\n`Poly-io` is a lightweight (no-dependencies), typesafe and easy-to-use library for file system I/O in Scala (2.11/2.12). \n\n```scala\n    libraryDependencies += \"me.tongfei\" %% \"poly-io\" % \"0.3.2\"\n```\n### Features\n\n##### Fluent idiomatic-Scala style file I/O\n```scala\nimport poly.io.Local._\n\nval lines = File(\"/usr/local/...\").lines // type: Iterable[String]\nval li = File(\"/home/foo/bar.gz\") decompress Gzip decode Codec.ISOLatin1 linesIterator // type: Iterator[String]\n```\n\n##### Typesafe (dependent-type based) filesystem manipulation\n```scala\nval files = Local.Directory(\"/home/foo/a\").recursiveChildren // type: Iterable[Local.Path]\nval zipFile = files.find(_.name endsWith \"zip\").get\nval z = ZipArchive(zipFile)\nval filesInZip = z.root.recursiveChildren // type: Iterable[z.Path]\n```\n\n### Documentation\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctongfei%2Fpoly-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctongfei%2Fpoly-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctongfei%2Fpoly-io/lists"}