semvec/pypi-packages huggingface dataset:
truelle 0.0.1
A tiny web scraping library
License: MIT
Requires Python: >=3.9,<4.0

# Truelle



Truelle - "trowel" in french - is a tiny web scraping library, inspired by the great [Scrapy](https://scrapy.org/) framework, 
depending only on [Requests](https://requests.readthedocs.io/en/latest/), and [Parsel](https://github.com/scrapy/parsel) libraries.

Truelle only offers a sequential request processing, and returns items directly
It's intended to be embedded in tiny scripts. Spiders aims to be compatible with Scrapy spider and easily switch to a Scrapy.

## Install

    pip install truelle

## Get started

1. Create a Spider

```python
from truelle import Spider

class MySpider(Spider):
    start_urls = [ "https://truelle.io" ]
    
    def parse(self, response: Response):
        for title in response.css("h1::text").getall():
            yield { "title": title }
            
spider = MySpider() 
```

2. Then get your items back...

... in vanilla Python:
           
```python
for item in spider.crawl():
    do_something(item)
```

... in a Pandas dataframe:

```python
import pandas as pd
my_df = pd.DataFrame(spider.crawl())
```

## Custom settings

```python
def custom_fingerprint(request):
    return "test"

custom_settings = {
    "HTTP_CACHE_ENABLED": True,
    "REQUEST_FINGERPRINTER": custom_fingerprint,
    "HTTP_PROXY": "http://myproxy:8080",
    "HTTPS_PROXY": "http://myproxy:8080",
    "DOWNLOAD_DELAY": 2
}

spider.crawl(settings=custom_settings)
```
pupil-core-network-client 1.0.0a5
A Python client for the Pupil Core Network API
License: MIT
Requires Python: >=3.7

.. image:: https://img.shields.io/pypi/v/pupil-core-network-client.svg
   :target: `PyPI link`_

.. image:: https://img.shields.io/pypi/pyversions/pupil-core-network-client.svg
   :target: `PyPI link`_

.. _PyPI link: https://pypi.org/project/pupil-core-network-client

.. image:: https://github.com/papr/pupil-core-network-client/workflows/tests/badge.svg
   :target: https://github.com/papr/pupil-core-network-client/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: Black

.. image:: https://readthedocs.org/projects/pupil-core-network-client/badge/?version=latest
   :target: https://pupil-core-network-client.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2021-informational
   :target: https://blog.jaraco.com/skeleton

Pupil Core Network API Client
#############################

This Python module is a client for the `Pupil Core Network API`_. It implements many of
the functionalities demonstrated in the `Pupil Helpers`_.

.. _Pupil Core Network API: https://docs.pupil-labs.com/developer/core/network-api/
.. _Pupil Helpers: https://github.com/pupil-labs/pupil-helpers/tree/master/python

Installation
------------

We recommend installing the pre-packaged binary wheels from PyPI:

.. code-block:: console

    pip install pupil-core-network-client

For more information see the `documentation <https://pupil-core-network-client.readthedocs.io>`_.
import-r 0.2
Enables importing R packages and files (like python modules) in python syntax via rpy2.
License: MIT
Requires Python: >=3.5

# Python-style imports of R files and packages

An rpy2 wrapper package to enable Python-style imports of R files and packages
and expose them as commandline tools (based on python-fire), including automatic pandas
object conversion if it is installed.

## Setup
```
pip install import-r
```

## Usage
Import any R installed package or R file in your working dir or on either `$RPYPATH` or `$R_LIBS` paths
like any other python module:
```
    from r import test
    import r.test as rtest
    from r import ggplot2
    import r
    r.path.append('dir/to/my/rfiles')
    from r import my_rfile
```
### Commandline interface
Install with cli support (`pip install import-r[rcli]`) and then use R files and packages on the commandline
like this:
```
    rcli utils install_packages ggplot2
    rcli path/to/my/rfile.R function1 --arg=2 --flag
```

### Test and release
```
pip install .[test]
pytest
python setup.py sdist
twine upload dist/*
```
Once everything passed successfully, tag and push to github:
```
version=0.1
git commit -m "Release v${version}"
git tag "v$version"
git push; git push --tags
```

## Credit
Michel Wortmann <michel.wortmann@ouce.ox.ac.uk>

MIT Licence