Thin wrapper around source control systems
Project description
# Blah: Download source control URIs
The main use of Blah is being able to download repositories from a URI that
specifies what version control system is being used:
```python
import blah
blah.fetch("git+https://github.com/mwilliamson/blah.git", "/tmp/blah")
print open("/tmp/blah/README.md").read()
```
Blah can also be used as a script:
```
blah fetch git+https://github.com/mwilliamson/blah.git /tmp/blah
```
Specific commits can be selected by appending a hash to the URI, followed by
the name of the commit:
```python
blah.fetch("git+https://github.com/mwilliamson/blah.git#74d69b4", "/tmp/blah")
```
At the moment, git and hg URIs are supported.
The main use of Blah is being able to download repositories from a URI that
specifies what version control system is being used:
```python
import blah
blah.fetch("git+https://github.com/mwilliamson/blah.git", "/tmp/blah")
print open("/tmp/blah/README.md").read()
```
Blah can also be used as a script:
```
blah fetch git+https://github.com/mwilliamson/blah.git /tmp/blah
```
Specific commits can be selected by appending a hash to the URI, followed by
the name of the commit:
```python
blah.fetch("git+https://github.com/mwilliamson/blah.git#74d69b4", "/tmp/blah")
```
At the moment, git and hg URIs are supported.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blah-0.1.2.tar.gz
(3.7 kB
view details)
File details
Details for the file blah-0.1.2.tar.gz
.
File metadata
- Download URL: blah-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbc42b885e11e0ccb2179013b5dec9ad9be62bfc0f11eeca0fd2b2b1d8822e7 |
|
MD5 | 24d51fcc281b03c3391c9168636e89ba |
|
BLAKE2b-256 | 9e6c47cefd3e62c8ca11409ec4772e529fd15b018837dca97a95c56e0351f608 |