semvec/pypi-packages huggingface dataset:
firestore-collections 0.5.2
Simple Firestore collection definitions and queries using pydantic schemas and Firestore query API.
Requires Python: >=3.6

# Firestore Collections

Simple Firestore collection definitions and queries using pydantic schemas and Firestore query API.

A quick and easy way to make use of the NoSQL document database solution [Firestore](https://cloud.google.com/firestore) available in Google Cloud Platform (GCP).

## Requirements

* Python 3.6+
* GCP project with Firestore enabled

## Features

* **Schema definition and validation**: Define collection schemas using `pydantic` and built-in type hinting (`typing`).
* **Automatic IDs**: Automatic ID generation using 12-byte hexadecimal (`bson.ObjectId`).
* **Simple queries**: Query collections using a simple interface.
* **Auxiliary timestamps**: Automatically added timestamps to objects like `created_at` and `updated_at`.

## Example

Define _users_ collection and perform different queries:
```python
from typing import Optional

from pydantic import EmailStr, SecretStr
from firestore_collections import Collection, Schema


class User(Schema):
    __collection_name__ = 'users'
    __unique_keys__ = ['email']

    email: EmailStr
    full_name: str = None
    password: Optional[SecretStr]


# Initialize firestore collection
collection = Collection(schema=User)

# Initialize user object
user = User(
    email='john@doe.com',
    full_name='John')

# Insert
user = collection.insert(user)

# Get object from db
user = collection.get(user.id)

# Update
user.full_name = 'John Doe'
collection.update(user)

# Get by attribute
user = collection.get_by_attribute('email', 'john@doe.com')

# Get all objects
users = collection.get_all()

# Delete object
collection.delete(id=user.id)
```

## GCP credentials

**NOTE**: The package assumes a valid GCP credentials file is available and its path defined in the environment variable `GOOGLE_APPLICATION_CREDENTIALS`.

## License

This project is licensed under the terms of the MIT license.
dsomit 1.0.0
Removes all .DS_Store files from a list

# Description

A simple package that removes all *.DS_Store* files from a list.

# Usage

```python
import dsomit as ds

old_files_list = ["getJob.java", ".DS_Store", "root.xml"]
new_files_list = ds.omit(old_files_list) # Removes the .DS_Store 

print(old_files_list)
print(new_files_list)
```
TrackFit 0.1.7
My first Python package
Keywords: python,first package


# TrackFit

TrackFit helps you to keep track of your calories to reach your goal faster in short time

## Installation

To install this package

```bash
  pip install TrackFit
```


## Usage

    from Trackcalories import musclegain 
    
    from Trackcalories import maintenance
    
    from Trackcalories import bodyrecomposition
    
    from Trackcalories import fatloss
    
    
    ( Pass weight (in kgs) and height (in cms) to get accurate result )
    
    mg =  musclegain.muscle_gain_calories(weight=78, height=178, gender= 'male', age=21)

    
    mt_cal =  maintenance.maintenance_calories(weight=78, height=178, gender= 'male', age=21)

    
    recomp = bodyrecomposition.bodyRecomposition_calories(weight=78, height=178, gender= 'male', age=21)

    
    floss = fatloss.fatloss_calories(weight=78, height=178, gender= 'male', age=21)

    


## Authors

- [@krishna sonune](https://www.github.com/krishnasonune)