gruns / furl

🌐 URL parsing and manipulation made easy.
Other
2.6k stars 151 forks source link

[Request] Domain manipulation #137

Open kaldown opened 3 years ago

kaldown commented 3 years ago

Is there any useful way to manipulate domains?

Reasoning: let's say I have https://s3.amazonaws.com I need to build endpoint with bucket name f.domain.add('my-bucket')

then I need to create website out of it:

>> f.url
https://my-bucket.s3.amazonaws.com
>>> f.domain.part[1] = "s3-website-region"

In total:

>>> f.url
https://my-bucket.s3-website-region.amazonaws.com
gruns commented 3 years ago

not yet unfortunately

great domain support will be added with https://github.com/gruns/furl/issues/110, which i've started but not yet completed