https://github.com/datasets-org/urljoin
join url paths
https://github.com/datasets-org/urljoin
join path url
Last synced: 9 months ago
JSON representation
join url paths
- Host: GitHub
- URL: https://github.com/datasets-org/urljoin
- Owner: datasets-org
- License: mit
- Created: 2017-12-21T16:01:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T20:46:32.000Z (over 8 years ago)
- Last Synced: 2024-12-29T19:06:22.883Z (over 1 year ago)
- Topics: join, path, url
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Urljoin



[](https://travis-ci.org/datasets-org/urljoin)
When you need to join url paths!
## Install
```
pip install urljoin
```
## Example
```python
import urljoin
urljoin.url_path_join("a", "b")
'a/b'
urljoin.url_path_join("a/", "/b")
'a/b'
urljoin.url_path_join("a", "b", trailing_slash=True)
'a/b/'
```
## Development
Feel free to contribute via pull request or file an issue.
## Copyright and License
© 2017 [tivvit.cz](https://tivvit.cz)
Released under MIT license