semvec/pypi-packages huggingface dataset:
offline_sandbox 1
Decorator to return a default value for a function when offline
License: MIT

## Decorator to return a default value for a function when offline
Decorate your functions with a default value and set OfflineSandbox.SANDBOX to your Online/Offline status


```
import OfflineSandbox

OfflineSandbox.SANDBOX = False


@OfflineSandbox.offline_sandbox_value('mundo')
def greet():
    return 'hola'

print(greet())

OfflineSandbox.SANDBOX = True

print(greet())
```

You can also respond given the availability of a specific URL

```
@OfflineSandbox.offline_sandbox_value('mundo', url='https://im-online.herokuapp.com/')
def greet_with_url():
    return 'hola'

print(greet_with_url())
```
arxiv-decent-feeds 0.0.2
Feed converer for arxiv feeds
License: MIT
Keywords: arxiv feed aggregator

# arXiv decent feeds

Ever wanted to follow arXiv feeds on Slack, but try as you might slackbot was
unable to show arXiv updates?

Wonder no more! arXiv decent feeds reads and converts arXiv RSS feeds to valid
RSS 2.0 feeds that slackbot will (hopefully) read!

## Installation

```
pip install https://github.com/trovao/arxiv-decent-feeds/zipball/master
```

## Usage

### Adding a feed

```
usage: arxivdf add [-h] url target_file

positional arguments:
  url
  target_file

optional arguments:
  -h, --help   show this help message and exit
```

For example, to add the `cs.LG` (Computer Science Learning) feed, one could do:

```
arxivdf add http://export.arxiv.org/rss/cs.LG\?version\=2.0 cs.LG.rss
```

### Fetching updates

```
arxivdf update
```

### Generating feeds

If you added `cs.LG` as show above, after you can call the command `arxivdf
generate` your feed will be saved to the file `cs.LG.rss` in the current
directory.

### Periodically updating and generating feeds

Just set up a cron job with to do that. What I'm currently using is, with
a python virtualenv (the `source ~/venvs/feeds/bin/activate` part):

```cron
*/5 * * * * (source ~/venvs/feeds/bin/activate ; arxivdf update ; arxivdf generate)
```