semvec/pypi-packages huggingface dataset:
factor-backtester 1.0.2
A tool for factor backtesting
Requires Python: >=3.6

# FactorBacktester
FactorBacktester is a specialized backtester for cross-section factor evaluation. It provides functionality for calculating rankICs, quantile returns, and factor returns based on variable methods. 

## Example
For a detailed example, please refer to the [demo file](/Functional%20Demo.ipynb) included in this repository.

## License
Factor Management is released under the [MIT License](LICENSE).

Please note that this project is still under development, and any feedback or contributions are highly appreciated.
graphene-django-cud 0.13.0
Create, update and delete mutations for graphene-django

# Graphene Django CUD

![Version](https://img.shields.io/pypi/v/graphene-django-cud)
![Build status](https://travis-ci.org/tOgg1/graphene-django-cud.svg?branch=develop)
[![Documentation Status](https://readthedocs.org/projects/graphene-django-cud/badge/?version=latest)](https://graphene-django-cud.readthedocs.io/en/latest/?badge=latest)
![License](https://img.shields.io/github/license/tOgg1/graphene-django-cud)

This package contains a number of helper mutations making it easy to construct create, update and delete mutations for django models.

The helper mutations are:
 * `DjangoCreateMutation`
 * `DjangoPatchMutation`
 * `DjangoUpdateMutation`
 * `DjangoDeleteMutation`
 * `DjangoBatchCreateMutation`
 * `DjangoBatchPatchMutation`
 * `DjangoBatchUpdateMutation`
 * `DjangoBatchDeleteMutation`
 * `DjangoFilterUpdateMutation`
 * `DjangoFilterDeleteMutation`

The package handles both regular ids and relay ids automatically.

## Installation

`pip install graphene_django_cud`

## Basic usage

To use, here illustrated by `DjangoCreateMutation`, simply create a new inherting class.
Suppose we have the following model and Node.

```python
class User(models.Model):
    name = models.CharField(max_length=255)
    address = models.TextField()

class UserNode(DjangoObjectType):
    class Meta:
        model = User
        interfaces = (Node,)
```

Then we can create a create mutation with the following schema

```python
class CreateUserMutation(DjangoCreateMutation):
    class Meta:
        model = User


class Mutation(graphene.ObjectType):
    create_user = CreateUserMutation.Field()


class Query(graphene.ObjectType):
    user = graphene.Field(UserNode, id=graphene.String())

    def resolve_user(self, info, id):
        return User.objects.get(pk=id)


schema = Schema(query=Query, mutation=Mutation)
```

Note that the `UserNode` has to be registered as a field before the mutation is instantiated. This will be configurable in the future.

The input to the mutation is a single variable `input` which is automatically created with the models fields.
An example mutation would then be

```graphql
mutation {
    createUser(input: {name: "John Doe", address: "Downing Street 10"}){
        user{
            id
            name
            address
        }
    }
}
```

## Documentation

The full documentation can be found at https://graphene-django-cud.readthedocs.io/en/latest/.
pdf-nupper 0.1.2
A command-line tool for n-upping PDF files (e.g., combining 2 pages into one) for printing purposes.
Requires Python: >=3.6
Keywords: PDF, n-up, combine, printing

# pdf-nupper

[![PyPI](https://img.shields.io/pypi/v/pdf-nupper?label=pypi%20package&color=blue)](https://pypi.org/project/pdf-nupper/)

`pdf-nupper` is a Python command-line tool for merging multiple pages of a PDF into a single page.This is also called 'n-up' (hence the name). This is particularly useful for printing purposes, where you might want to fit multiple pages onto one sheet of paper. For example, in a lecture note where each page is a slide, you can use pdf-nupper to fit 4 pages in one sheet.

## Usage

```bash
pdf-nupper input.pdf output.pdf [-l] [-n LAYOUT]
```

### Arguments:

- `input.pdf`: Path to the input PDF file
- `output.pdf`: Path where the output PDF file will be saved

### Options:

- `-l, --landscape`: Use landscape mode instead of portrait mode
- `-n LAYOUT, --layout LAYOUT`: Layout of the pages (e.g., 2x2, 3x4). Default is "1x2"

## Examples:

1. Basic usage (default 1x2 layout in portrait mode):
   ```bash
   pdf-nupper input.pdf output.pdf
   ```

2. Using landscape mode:
   ```bash
   pdf-nupper input.pdf output.pdf -l
   ```

3. Custom layout (2x2 in portrait mode):
   ```bash
   pdf-nupper input.pdf output.pdf -n 2x2
   ```

4. Custom layout in landscape mode:
   ```bash
   pdf-nupper input.pdf output.pdf -l -n 2x4
   ```

Note: The layout should be specified as "NxM" where N and M are positive integers representing the number of rows and columns respectively.