Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: construct bucket paths with scheme prefixes #18

Merged
merged 10 commits into from
Apr 24, 2020
Merged
64 changes: 32 additions & 32 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
## [0.0.17](https://github.com/justindujardin/gcspath/compare/v0.0.16...v0.0.17) (2020-04-17)
## [0.0.17](https://github.com/justindujardin/pathy/compare/v0.0.16...v0.0.17) (2020-04-17)


### Bug Fixes

* do not de/compress opened files based on extension ([22d14e7](https://github.com/justindujardin/gcspath/commit/22d14e7d4919f16ca54bf28e685c221f7c96f8d3))
* do not de/compress opened files based on extension ([22d14e7](https://github.com/justindujardin/pathy/commit/22d14e7d4919f16ca54bf28e685c221f7c96f8d3))

## [0.0.16](https://github.com/justindujardin/gcspath/compare/v0.0.15...v0.0.16) (2020-04-16)
## [0.0.16](https://github.com/justindujardin/pathy/compare/v0.0.15...v0.0.16) (2020-04-16)


### Features

* **typing:** expose library python types to mypy ([53cf348](https://github.com/justindujardin/gcspath/commit/53cf34845399e1d31538dc02e462d7e02bcd32a6))
* **typing:** expose library python types to mypy ([53cf348](https://github.com/justindujardin/pathy/commit/53cf34845399e1d31538dc02e462d7e02bcd32a6))

## [0.0.15](https://github.com/justindujardin/gcspath/compare/v0.0.14...v0.0.15) (2020-04-16)
## [0.0.15](https://github.com/justindujardin/pathy/compare/v0.0.14...v0.0.15) (2020-04-16)


### Bug Fixes

* **requirements:** remove typer dependency ([08e8fa0](https://github.com/justindujardin/gcspath/commit/08e8fa0baa186b710a6adf2205b0a51bbd39fe37))
* **requirements:** remove typer dependency ([08e8fa0](https://github.com/justindujardin/pathy/commit/08e8fa0baa186b710a6adf2205b0a51bbd39fe37))

## [0.0.14](https://github.com/justindujardin/gcspath/compare/v0.0.13...v0.0.14) (2020-04-16)
## [0.0.14](https://github.com/justindujardin/pathy/compare/v0.0.13...v0.0.14) (2020-04-16)


### Bug Fixes

* **iterdir:** don't return empty results ([2a8b870](https://github.com/justindujardin/gcspath/commit/2a8b870c2ca232431c65808050363e8faff60ba2))
* **iterdir:** don't return empty results ([2a8b870](https://github.com/justindujardin/pathy/commit/2a8b870c2ca232431c65808050363e8faff60ba2))

## [0.0.13](https://github.com/justindujardin/gcspath/compare/v0.0.12...v0.0.13) (2020-04-16)
## [0.0.13](https://github.com/justindujardin/pathy/compare/v0.0.12...v0.0.13) (2020-04-16)


### Bug Fixes

* **to_local:** issue where files without extensions would not be cached ([3d543a8](https://github.com/justindujardin/gcspath/commit/3d543a88a81604d13f8e401422d59803d9bb3943))
* **to_local:** issue where files without extensions would not be cached ([3d543a8](https://github.com/justindujardin/pathy/commit/3d543a88a81604d13f8e401422d59803d9bb3943))

## [0.0.12](https://github.com/justindujardin/gcspath/compare/v0.0.11...v0.0.12) (2020-04-15)
## [0.0.12](https://github.com/justindujardin/pathy/compare/v0.0.11...v0.0.12) (2020-04-15)


### Bug Fixes

* recursion error when copying blob folders ([8b6e01c](https://github.com/justindujardin/gcspath/commit/8b6e01c3e8c35a78deee60d45563b27b7a732e9a))
* recursion error when copying blob folders ([8b6e01c](https://github.com/justindujardin/pathy/commit/8b6e01c3e8c35a78deee60d45563b27b7a732e9a))

## [0.0.11](https://github.com/justindujardin/gcspath/compare/v0.0.10...v0.0.11) (2020-04-15)
## [0.0.11](https://github.com/justindujardin/pathy/compare/v0.0.10...v0.0.11) (2020-04-15)


### Features

* **to_local:** support caching folders ([cc56f6e](https://github.com/justindujardin/gcspath/commit/cc56f6eab21f850f0521013749589ad0736e261d))
* **to_local:** support caching folders ([cc56f6e](https://github.com/justindujardin/pathy/commit/cc56f6eab21f850f0521013749589ad0736e261d))

## [0.0.10](https://github.com/justindujardin/gcspath/compare/v0.0.9...v0.0.10) (2020-04-14)
## [0.0.10](https://github.com/justindujardin/pathy/compare/v0.0.9...v0.0.10) (2020-04-14)


### Features

* add `use_fs_caching` and `GCSPath.to_local` for caching ([2894360](https://github.com/justindujardin/gcspath/commit/2894360d48e3ac4b28ecb4627eb562f9e65b3c93))
* add `use_fs_caching` and `Pathy.to_local` for caching ([2894360](https://github.com/justindujardin/pathy/commit/2894360d48e3ac4b28ecb4627eb562f9e65b3c93))

## [0.0.9](https://github.com/justindujardin/gcspath/compare/v0.0.8...v0.0.9) (2020-04-08)
## [0.0.9](https://github.com/justindujardin/pathy/compare/v0.0.8...v0.0.9) (2020-04-08)


### Features

* add `resolve` method ([7cebc69](https://github.com/justindujardin/gcspath/commit/7cebc69bfc88b1a522defdce1637f5159c37def6))
* add `resolve` method ([7cebc69](https://github.com/justindujardin/pathy/commit/7cebc69bfc88b1a522defdce1637f5159c37def6))

## [0.0.8](https://github.com/justindujardin/gcspath/compare/v0.0.7...v0.0.8) (2020-04-08)
## [0.0.8](https://github.com/justindujardin/pathy/compare/v0.0.7...v0.0.8) (2020-04-08)


### Features

* allow passing GCSPath to spacy.Model.to_disk ([1d628cb](https://github.com/justindujardin/gcspath/commit/1d628cb8c5056683590d9f2403f1482e2a310971))
* **use_fs:** allow passing root folder as Path ([3635152](https://github.com/justindujardin/gcspath/commit/36351525bf84001ed4f9b0b7abf842f8e27ef1f0))
* allow passing Pathy to spacy.Model.to_disk ([1d628cb](https://github.com/justindujardin/pathy/commit/1d628cb8c5056683590d9f2403f1482e2a310971))
* **use_fs:** allow passing root folder as Path ([3635152](https://github.com/justindujardin/pathy/commit/36351525bf84001ed4f9b0b7abf842f8e27ef1f0))

## [0.0.7](https://github.com/justindujardin/gcspath/compare/v0.0.6...v0.0.7) (2020-03-30)
## [0.0.7](https://github.com/justindujardin/pathy/compare/v0.0.6...v0.0.7) (2020-03-30)


### Bug Fixes

* **gcs:** gracefully handle invalid gcs client case ([529f630](https://github.com/justindujardin/gcspath/commit/529f63026abe1b11c3336febb152a030e28a85ef))
* **gcs:** gracefully handle invalid gcs client case ([529f630](https://github.com/justindujardin/pathy/commit/529f63026abe1b11c3336febb152a030e28a85ef))

## [0.0.6](https://github.com/justindujardin/gcspath/compare/v0.0.5...v0.0.6) (2020-03-30)
## [0.0.6](https://github.com/justindujardin/pathy/compare/v0.0.5...v0.0.6) (2020-03-30)


### Features

* add github releases for each pypi version ([66dbed8](https://github.com/justindujardin/gcspath/commit/66dbed851346372ab84080f027113aba054452af))
* add github releases for each pypi version ([66dbed8](https://github.com/justindujardin/pathy/commit/66dbed851346372ab84080f027113aba054452af))

## [0.0.5](https://github.com/justindujardin/gcspath/compare/v0.0.4...v0.0.5) (2020-03-30)
## [0.0.5](https://github.com/justindujardin/pathy/compare/v0.0.4...v0.0.5) (2020-03-30)

### Bug Fixes

- generating changelog ([ef43ed1](https://github.com/justindujardin/gcspath/commit/ef43ed11a140ed3cfaba2e7d72b7c01c7275c8d6))
- generating changelog ([ef43ed1](https://github.com/justindujardin/pathy/commit/ef43ed11a140ed3cfaba2e7d72b7c01c7275c8d6))

## [0.0.4](https://github.com/justindujardin/gcspath/compare/v0.0.3...v0.0.4) (2020-03-30)
## [0.0.4](https://github.com/justindujardin/pathy/compare/v0.0.3...v0.0.4) (2020-03-30)

### Features

- support unlink path operation

## [0.0.3](https://github.com/justindujardin/gcspath/compare/v0.0.2...v0.0.3) (2020-03-30)
## [0.0.3](https://github.com/justindujardin/pathy/compare/v0.0.2...v0.0.3) (2020-03-30)

### Features

- **gcs:** use smart_open for streaming files ([e557ab9](https://github.com/justindujardin/gcspath/pull/3/commits/e557ab9e3bc7c0edcb02333fe8ea6be760c152dc))
- add file-system bucket adapter ([1c72f47](https://github.com/justindujardin/gcspath/pull/3/commits/1c72f475fde8de1c6cb3af23d63b793722fe82e2))
- use_fs stores buckets on the file-system ([f717280](https://github.com/justindujardin/gcspath/pull/3/commits/f7172806d0ae3e408aafc12fe7526b9852ce8b36))
- **gcs:** use smart_open for streaming files ([e557ab9](https://github.com/justindujardin/pathy/pull/3/commits/e557ab9e3bc7c0edcb02333fe8ea6be760c152dc))
- add file-system bucket adapter ([1c72f47](https://github.com/justindujardin/pathy/pull/3/commits/1c72f475fde8de1c6cb3af23d63b793722fe82e2))
- use_fs stores buckets on the file-system ([f717280](https://github.com/justindujardin/pathy/pull/3/commits/f7172806d0ae3e408aafc12fe7526b9852ce8b36))

## [0.0.2](v0.0.1...v0.0.2) (2020-03-18)

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include setup.py
include README.md
include LICENSE
include gcspath/py.typed
include pathy/py.typed
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ test: venv
publish: venv
env3.7/bin/python setup.py sdist bdist_wheel
env3.7/bin/twine upload dist/*
rm -rf build dist .egg gcspath.egg-info
rm -rf build dist .egg pathy.egg-info

clean:
rm -rf build dist .egg gcspath.egg-info env3.7
rm -rf build dist .egg pathy.egg-info env3.7

check: test
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# GCSPath
# Pathy

[![Build status](https://travis-ci.org/justindujardin/gcspath.svg?branch=master)](https://travis-ci.org/justindujardin/gcspath)
[![Pypi version](https://badgen.net/pypi/v/gcspath)](https://pypi.org/project/gcspath/)
[![Build status](https://travis-ci.org/justindujardin/pathy.svg?branch=master)](https://travis-ci.org/justindujardin/pathy)
[![Pypi version](https://badgen.net/pypi/v/pathy)](https://pypi.org/project/pathy/)

> IMPORTANT: this library is not ready for use

GCSPath provides a convenient Pythonic File-System/Path like interface to Google Cloud Storage using [google-cloud-storage](https://pypi.org/project/google-cloud-storage/) package as a driver.
Pathy provides a convenient Pythonic File-System/Path like interface to Google Cloud Storage using [google-cloud-storage](https://pypi.org/project/google-cloud-storage/) package as a driver.

It is based on the [S3Path](https://github.com/liormizr/s3path) project, which provides a similar interface for S3 buckets.

Expand All @@ -14,7 +14,7 @@ It is based on the [S3Path](https://github.com/liormizr/s3path) project, which p
From PyPI:

```bash
$ pip install gcspath
$ pip install pathy
```

# Requirements
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gcspath",
"name": "pathy",
"version": "0.0.0-development",
"description": "",
"main": "index.js",
Expand All @@ -11,14 +11,14 @@
},
"repository": {
"type": "git",
"url": "https://github.com/justindujardin/gcspath"
"url": "https://github.com/justindujardin/pathy"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/justindujardin/gcspath/issues"
"url": "https://github.com/justindujardin/pathy/issues"
},
"homepage": "https://github.com/justindujardin/gcspath#readme",
"homepage": "https://github.com/justindujardin/pathy#readme",
"devDependencies": {
"@semantic-release/changelog": "^5.0.0",
"@semantic-release/git": "^9.0.0",
Expand Down Expand Up @@ -77,7 +77,7 @@
"@semantic-release/git",
{
"assets": [
"gcspath/about.py",
"pathy/about.py",
"package.json",
"CHANGELOG.md"
],
Expand Down
3 changes: 2 additions & 1 deletion gcspath/__init__.py → pathy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
ClientBlob,
ClientBucket,
ClientError,
GCSPath,
Pathy,
PureGCSPath,
FluidPath,
clear_fs_cache,
get_fs_cache,
get_fs_client,
Expand Down
4 changes: 2 additions & 2 deletions gcspath/about.py → pathy/about.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = "gcspath"
__title__ = "pathy"
__version__ = "0.0.17"
__summary__ = "pathlib.Path subclasses for Google Cloud Storage"
__uri__ = "https://github.com/justindujardin/gcspath"
__uri__ = "https://github.com/justindujardin/pathy"
__author__ = "Justin DuJardin"
__email__ = "justin@explosion.ai"
__license__ = "Apache 2.0"
Loading