semvec/pypi-packages huggingface dataset:
feedler 0.0.2
A dead simple parser
License: MIT
Requires Python: >=3.6.*
Keywords: rss json feed feeds parser

# Feedler

A dead simple parser.

This package is intended to be used as a global parser mainly for rss feeds.

## Setup

```
pip install feedler
```

## Usage

```python
from feedler.parsers import rss_parser

# parse from a url
rss_dict = rss_parser("https://sample.url")

# parse from a file
rss_dict = rss_parser("/path/to/file")

# get the rss as json
rss_json = rss_parser("url or file_path", format="json")
```

## Test

First you need to clone this repo

```
git clone git@github.com:xheuz/feedler.git
```

Then you need to add a virtualenv

```bash
python3 -m virtualenv ./.venv

# activate your venv
source .venv/bin/activate

# install all requirements.txt
pip install -r requirements.txt
```

And last run the tests

```
export PYTHONPATH=${PWD}; pytest -v .
```
lightstep-streaming 0.14.0
High performace C++ implementation of LightStep tracing
License: MIT
Requires Python: >=2.7,!=3.0.*,!=3.1.*
Keywords: opentracing,lightstep,traceguide,tracing,microservices,distributed

# LightStep Streaming: Our Streaming Python Tracer

The Streaming Python Tracer, is an [OpenTracing](http://opentracing.io) tracer which sends data to [LightStep Satellites](https://docs.lightstep.com/docs/satellite-setup).

This tracer sends data to multiple Satellites concurrently using non-blocking I/O writes. Memory is carefully managed so that spans are only copied a single time during the reporting process and streamed to Satellites as they are generated to avoid filling up memory. The Streaming Python Tracer is written in C++. There is a thin Python wrapper around this C++ core so the library can be imported just like any other Python module.

## Setup

If you aren't familiar with OpenTracing or LightStep, we recommend reading up before continuing.

Before installing, make sure that you system meets these requirements:

- Linux
- Python 2.7 or >= 3.2.0 (and pip)
- opentracing PyPI Module (>=2.2.0)

To install the Streaming Python Tracer, run `pip install lightstep-streaming`.

## Getting Started

The beauty of OpenTracing is that all tracers follow a well-defined API. The only step which varies from tracer to tracer is the setup step when `lightstep_streaming.Tracer`'s constructor is called. Below is a sample program which illustrates how to create a new Tracer object using the Streaming Python Tracer. For more details on how to use a `Tracer` object once it has been created, checkout the [OpenTracing Python API Guide](https://opentracing.io/guides/python/tracers/).

```python
import lightstep_streaming

tracer = lightstep_streaming.Tracer(
    component_name='[your service name]',
    access_token='[your LightStep access token]',

    # Use these defaults unless you know what you're doing
    use_stream_recorder=True,
    collector_plaintext=True,

    # You can put any number of Satellite endpoints in this list and the tracer
    # will rotate through them and send spans to each one.
    satellite_endpoints=[{'host': 'localhost', 'port': 8360}],

    # Turns off verbose logging, which is really only useful for debugging.
    verbose=False
)

# Generates one span
with tracer.start_active_span('[your operation name]'):
    pass

# Makes sure that the tracer has sent the span to a Satellite
tracer.flush()
```

A complete list of Streaming Python Tracer configuration parameters can be found in [tracer_configuration.schema.json](https://github.com/lightstep/lightstep-tracer-cpp/blob/master/lightstep-tracer-configuration/tracer_configuration.schema.json). If you are interested in peeking at the source code, this is available in the [LightStep C++ Tracer repo](https://github.com/lightstep/lightstep-tracer-cpp).