semvec/pypi-packages huggingface dataset:
shournal-to-snakemake 0.1
Transform a command series from shournal into Snakemake rules
License: MIT

# shournal-to-snakemake

Transform a command series observed by 
[shournal](https://github.com/tycho-kirchner/shournal)
 to 
[snakemake](https://github.com/snakemake/snakemake)
 rules.

[shournal](https://github.com/tycho-kirchner/shournal) 
tracks read and written files of shell commands. Thus, for
each command the input- and output-section of a snakemake rule 
may be generated. Matched file-paths are automatically replaced
in the command string with {input} and {output}.


## Basic Usage
After 
[shournal](https://github.com/tycho-kirchner/shournal)
is installed, start a new (by shournal observed) shell session. Within that
perform the (shell-based) data analysis of your choice. 

Once done, from within the same shell-session, generate the snakemake rules by

```
shournal -q --output-format json -sid $SHOURNAL_SESSION_ID | shournal-to-snakemake
```

## Toy example
```
$ SHOURNAL_ENABLE
$ echo stuff > foo
$ cat foo > bar
$ shournal -q --output-format json -sid $SHOURNAL_SESSION_ID | shournal-to-snakemake
rule undefined_1:
    output:
        "foo",
    shell:
        # raw: echo stuff > foo
        "echo stuff > {output}"


rule undefined_2:
    input:
        "foo",
    output:
        "bar",
    shell:
        # raw: cat foo > bar
        "cat {input} > {output}"
```

## General hints
* Don't change the working directory during the workflow.
* Do not use wildcards or variables (in file-paths), otherwise the files
  in the command string cannot be correctly replaced by {input} or {output}.
* Stick to basic posix shell syntax


## Installation
Create a wheel directly from source by executing
```
python3 setup.py sdist bdist_wheel
```
Install the wheel as usual, e.g. by
```
pip3 install --user dist/shournal_to_snakemake-VERSION-*.whl
```


## License

Copyright &copy; 2020 Tycho Kirchner (see LICENSE)
autolive 0.0.3
Dev Package for autolive
License: MIT
Requires Python: >=3.6

# Autolive: AWS medialive automation

The core idea of this proyect is to offload video transcoding from an NGNIX-RTMP server to AWS Medialive, replacing FFMPEG for transcoding and reducing server load from NGINX server.

NGINX RTMP: https://github.com/arut/nginx-rtmp-module

## How to make it work:

1) Install Nginx with rtmp module.
2) Git clone Autolive into preferred dir.
3) Set AWS details in conf.py.
4) Simlink autolive to /usr/local/bin/autolive.
5) Change nginx.conf to trigger autolive. (using nginx-rtmp exec options)

## AWS resources needed:

* DynamoDB table that defines channel details. (schema comming soon)
* s3 bucket for AWS medalive outputs.
* CDN distribution. (optional)

## CLI options:

* '-s', '--streamkey' --> (string) | Define streamkey. Streamkey should reference dynamodb table.
* '-a', '--action' --> (string) | Define what action to perform: 'create', 'delete'.
* '-A', '--application' --> (string) | manually define Nginx rtmp application, default 'live'.
       
## Notes:

ATM only pull channels are supported.
Lots of improvment needed but core functionality is working.
git-nb 0.1.4
Python package to execute git command in notebook
License: MIT
Keywords: git python repo repository pull clone notebook nb

git_nb
============

Python package to execute basic git command in notebook.

Installation
------------
Using pip :

.. code:: sh

    pip install git_nb


Example
-------

Set your config
~~~~~~~~~~~~~~~

.. code:: python

    from git_nb import cfg

    cfg.username = "yourusername"
    cfg.email = "youremail"

Clone a repository
~~~~~~~~~~~~~~~~~~

If the repository is private, you will be invited to write your password.

.. code:: python

    import git_nb
    from git_nb import cfg

    cfg.repo_name = "yourrepo"
    git_nb.git_clone()

Pull
~~~~

.. code:: python

    import git_nb

    git_nb.git_pull()