semvec/pypi-packages huggingface dataset:
somosweep 0.1.5
A utility for running parameter sweeps in SoMo or SoMoGym.
License: MIT

# SoMoSweep
A utility for running parameter sweeps in SoMo or SoMoGym. Perform multidimensional parameter sweeps with true parallel processing and easy data handling.


## Installation
### Requirements
- [Python 3.6](https://www.python.org/downloads/release/python-360/)+
- Tested on:
	- Ubuntu 16.04 and Ubuntu 18.04 with Python 3.6.9
	- Ubuntu 20.04 with Python 3.6.9, 3.7.9 and 3.8.2
	- Windows 10 with Python 3.7 and Python 3.8 through [Anaconda](https://www.anaconda.com/products/individual#Downloads)
- Recommended: pip (`sudo apt-get install python3-pip`) 
- Recommended (for Ubuntu): [venv](https://docs.python.org/3/library/venv.html) (`sudo apt-get install python3-venv`)

### Setup
0. Make sure your system meets the requirements
1. Clone this repository
2. Set up a dedicated virtual environment using `venv`
3. Activate virtual environment
4. Install this module
	- Install the most recent release version using pip:
		- `pip install somosweep`
    - OR Install the development version:
        - Clone this repo to your machine and navitage to the root folder
        - Install requirements `pip install -r requirements.txt`
        - Install the module `pip install -e .`


### Explore the examples
- Run any of the files in the examples folder.

### Contributing
- only through a new branch and reviewed PR (no pushes to master!)
- always use [Black](https://pypi.org/project/black/) for code formatting
- always bump the version of your branch by increasing the version number listed in somo/_version.py

### Testing
SoMoSweep uses pytest for testing. You can run all tests with `pytest` from the repository's root.


## Using this framework
Check out the [documentation](https://github.com/cbteeple/somosweep/tree/main/docs). _Read-the-docs site coming soon._


## License

MIT open source

Copyright (c) 2022 Clark B. Teeple
mongoengine-softdelete 0.0.10
Soft delete for MongoEngine
License: MIT
Requires Python: >=3.7,<4.0
Keywords: mongoengine,soft,delete

[![CircleCI](https://circleci.com/gh/dolead/mongoengine-softdelete.svg?style=shield)](https://app.circleci.com/pipelines/github/dolead/mongoengine-softdelete) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/6d09806a72f44b65aeb72cbbafa9c986)](https://www.codacy.com/gh/dolead/mongoengine-softdelete/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=dolead/mongoengine-softdelete&amp;utm_campaign=Badge_Grade)

# MongoEngine Soft Delete

Make a document soft deletable.

## Installation

Install `mongoengine-softdelete` through pip as usual:

    pip install mongoengine-softdelete

## Usage

Here is an example on how to use a soft deletable document:

    from mongoengine_softdelete.document import SoftDeleteNoCacheDocument    

    class IceCream(SoftDeleteNoCacheDocument):
        meta = {
            'collection': 'ice_cream',
            'soft_delete': {'deleted': True},
            'indexes': [ 'flavor' ],
            'strict': False
        }

        flavor = fields.StringField(required=True)
        color = fields.StringField(required=True)
        price = fields.FloatField(default=0)
        created_at = fields.DateTimeField()

        # Declare the field used to check if the record is soft deleted
        # this field must also be reported in the `meta['soft_delete']` dict
        deleted = fields.BooleanField(default=False)

    # Save a new document
    ice = IceCream(flavor="Vanilla", color="White").save()
    assert not ice.is_soft_deleted

    # Mark the document as soft deleted
    ice.soft_delete()
    assert len(IceCream.objects()) == 0
    assert ice.is_soft_deleted

    # Soft undelete the document
    ice.soft_undelete()
    assert len(IceCream.objects()) > 0
    assert not ice.is_soft_deleted

## Tests

The test suit requires that you run a local instance of MongoDB on the standard
port and have `pytest` installed.  
You can run tests with the `pytest` command or with `make test`.

Linting is done with `mypy` and `pycodestyle` with the `make lint` command.