Implement _get_kwargs_from_urls
See original GitHub issueUsing URLs is very convenient, it allows configuring the storage via a single environment variable.
However S3FileSystem does not implement _get_kwargs_from_urls
so it is impossible to specify anything via the URL, only the bucket.
It would be good to have S3FileSystem parse query arguments, such as endpoint_url
(useful for testing locally with Minio for instance), region_name
, requester_pays
, signature_version
, and timeouts.
Right now I have to do my own parsing on the URL to pass it to S3FileSystem, which duplicates the effort in fsspec.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Access kwargs from a URL in a Django template
In the view, you can access the URL args and kwargs as self.args and self.kwargs . class MyView(View): def my_method(self): this_name ...
Read more >URL designing and URL kwargs in Django
URL designing and URL kwargs in Django ... A clean URL is really important for a good quality web application. You can design...
Read more >Chapter 8: Advanced Views and URLconfs - The Django Book
When a request comes in, Django tries to match the URLconf patterns against the requested URL, as a Python string. This does not...
Read more >django.urls utility functions
reverse() ¶ ... If you need to use something similar to the url template tag in your code, Django provides the following function:...
Read more >URL parameters in views - GitHub Pages
If you don't modify the view like this, it simply won't work — you'll get an exception, because Django will attempt to call...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is a great idea.
I bumped into this thread while trying to find out if I can specify the
endpoint_url
when using thes3fs
implementation inpandas
, when doing things likepd.from_csv("s3://...")
. Given the proliferation of S3-compatible object storage provides, I think this is an important use case. Unfortunately, thepandas
implementation does not allow to pass any arguments toS3FileSystem
.Moreover, I found a recent PR in pandas implementing this via environment variables (https://github.com/pandas-dev/pandas/pull/29050) and it was closed by the panda devs arguing that this should be implemented in
s3fs
instead.I think making these options configurable via the URL string would be the perfect solution.
Note that following https://github.com/pandas-dev/pandas/pull/34266 , it should become possible to pass parameters to the filesystem backend sometime in the future.