semvec/pypi-packages huggingface dataset:
fixtures-extractor 0.1.0
Set of tools to extract fixtures from Django models navigating through the relationships of a given model to get a usable subset of the database.

=============================
Django Fixtures Extractor
=============================

.. image:: https://badge.fury.io/py/django-fixtures-extractor.svg
    :target: https://badge.fury.io/py/django-fixtures-extractor

.. image:: https://travis-ci.org/matibarriento/django-fixtures-extractor.svg?branch=master
    :target: https://travis-ci.org/matibarriento/django-fixtures-extractor

.. image:: https://codecov.io/gh/matibarriento/django-fixtures-extractor/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/matibarriento/django-fixtures-extractor

Extract specific data to a django fixture

Documentation
-------------

The full documentation is at https://django-fixtures-extractor.readthedocs.io.

Quickstart
----------

Install Django Fixtures Extractor::

    pip install django-fixtures-extractor

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'fixtures_extractor',
        ...
    )

TODO Features
-------------
* Make pipinstallable
* Run CI/CD

Desired features
----------------
* Add support for Django 1.11 to 5
* Add supported model fields
    * Many to Many with `through <https://docs.djangoproject.com/en/4.2/ref/models/fields/#django.db.models.ManyToManyField.through>`_ model
* Add feature: Obfuscate value
* Add feature: Generate schema from model
* Fix tox and pyenv to work together

Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ python runtests.py


Development commands
---------------------

::

    pip install -r requirements/requirements_dev.txt
    pip install -r requirements/requirements_test.txt


How to add a new app and add tests
----------------------------------

1. Create the app

::

    $ cd tests/testproject
    $ python ../../manage.py startapp {APP_NAME}

2. Change the :code:`{APP_NAME}Config.name` inside the :code:`tests/{APP_NAME}/apps.py` file for :code:`tests.testproject.{APP_NAME}.apps.{APP_NAME}`
3. Add the app to the :code:`INSTALLED_APPS` in the :code:`/testproject/testproject/settings.py` file
4. Write the models that you would use to test on the model folder inside your app
5. Create the migrations using :code:`python manage.py makemigrations {APP_NAME}`
6. Run the migrations using :code:`python manage.py migrate`
7. Create the tests inside the :code:`tests/tests_orm_extractor.py` file

Credits
-------

Based on https://github.com/ascaliaio/django-dumpdata-one

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
quantnet 0.1.0
A PyTorch implementation of QuantNet: Transferring Learning Across Systematic Trading Strategies.
Requires Python: >=3.8

# quantnet

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/quantnet)
![GitHub](https://img.shields.io/github/license/brilhana/quantnet)

A PyTorch implementation of [QuantNet: Transferring Learning Across Systematic Trading Strategies](https://arxiv.org/abs/2004.03445).

## Installation
```bash
pip install quantnet
```
whut 0.7.2
A CLI tool to instantly search the internet using Google Generative AI in a decluttered manner.
Requires Python: >=3.6

# Whut

Whut is a versatile command-line tool that leverages Google Generative AI to search the internet and provide decluttered answers directly in your terminal. With Whut, you can configure your own API key, customize search prompts, and specify response lengths.

## Features

- **Configuration Mode**: Set your own API key for personalized usage.
- **Default Mode**: Get decluttered answers using a standard prompt.
- **Custom Mode**: Pass queries directly to the API without modification.
- **Limited Length Mode**: Specify the number of lines for the answer.

## Installation

You can install Whut from PyPI:

```pip install whut```

> Info here: https://pypi.org/project/whut/


## Usage
### Basic Search
To perform a basic search, simply type:

```whut "your search query"```   

 example:
            
    whut "Mahatma Gandhi"


### Configuration Mode

To set your own API key, use the -set flag:    

    whut -set


### Custom Mode

To pass the query directly to the API, use the -c flag:   


```whut -c "your search query"```    

Example: 

    whut -c "Sam Altman"

### Limited Length Mode

To get an answer with a specific number of lines, use the -c flag along with the -l flag:

```whut -c -l <number> "your search query"```    
Example: 

    whut -c -l 5 "Sam Altman"

### Custom Prompt
You can customize the search prompt by using the `-C` or `-c` option followed by a colon (`:`) and then your query:


```whut -C "Please provide detailed information about: Your search query"```   

Example:
    
    whut -C "Tell me in detail about: Sam Altman"
agp-py 0.1.3
Gene parser for Axie Infinity
Keywords: python, axie infinity

# Axie Gene Parser for Python

### WIP - haven't ported all the stuff the other module has (Mostly because I only find the genes useful)

This is a port of the Javascript version of a plugin, you can find it here: [agp-npm](https://github.com/ShaneMaglangit/agp-npm)

It parses the Axie Infinity hexadecimal gene strings into a human-readable format.

## Install

You can use pip to install:

```python
pip install agp-py
```

## Usage

First you need to get an Axie Gene String (You can use [Axie Infinity GraphQL](https://axie-graphql.web.app/)), after that you can start:

We will be using `0x30000000032cb3300c2320c80c2308c20c63184c04c1304c0c6331420c8320c8` as our hex string.

```python
from agp_py import AxieGene

hex_string = '0x30000000032cb3300c2320c80c2308c20c63184c04c1304c0c6331420c8320c8'
hex_type = 256
gene = AxieGene(hex_string, hex_type)
print(gene.genes)
```

The `AxieGene` class requires 2 arguments, First one is the hex string, Second one is the hex type (Either 256 or 512)

Then you can access the genes by using the method `genes`, it will give you a dictionary with the gene data.

```python
{
    'cls': 'plant', 
    'region': 'global', 
    'tag': '', 
    'bodySkin': '', 
    'pattern': {'d': '000011', 'r1': '001011', 'r2': '001011'}, 
    'color': {'d': 'efd636', 'r1': 'efd636', 'r2': 'ffffff'}, 
    'eyes': {
        'd': {'class': 'plant', 'name': 'Papi', 'partId': 'eyes-papi', 'specialGenes': '', 'type': 'eyes'}, 
        'r1': {'class': 'plant', 'name': 'Cucumber Slice', 'partId': 'eyes-cucumber-slice', 'specialGenes': '', 'type': 'eyes'}, 
        'r2': {'class': 'plant', 'name': 'Cucumber Slice', 'partId': 'eyes-cucumber-slice', 'specialGenes': '', 'type': 'eyes'},
        'mystic': False
    }, 
    
    # Other parts ....
}
```