An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Urljoin
![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)
![pip version](https://img.shields.io/pypi/v/urljoin.svg)
![pip wheel](https://img.shields.io/pypi/wheel/urljoin.svg)
[![Build Status](https://travis-ci.org/datasets-org/urljoin.svg?branch=master)](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