semvec/pypi-packages huggingface dataset:
PoseidonSentinel 0.1.2
A network based file tracking system
Requires Python: >=3.6

# Sentinel | APC File Tracking System

Sentinel is a file tracking system allowing for the logging of any creation, modification, deletion, or movement of a particular file
with a local system 

Further, it allows for the tracking of network files

## Authors

**[Johnny Whitworth (@Poseidon-dev)](https://github.com/poseidon-dev)** 

Update DELAY_INTERVAL for changes in fetch sensitivity

The lower the number, the greater the amount of fetches within a minute but
an increasd amount of potential issues. 

The larger the number, the lower the amount of fetches within a minute but 
a decreased amount of potential issues.

Defaults to 1 minute
```python
DELAY_INTERVAL = 60
```


When creating a Put, it will check to see if the destination file already exists. If a file is already in the directory 
then it will append the next subsequent letter to the file name.
This will fail if there are more than 10 instances of a file in the same directory
```python
while os.path.exists(path):
    if path[-1] in self.APPENDS:
        path = path[:len(path)-1] + self.APPENDS[count]
    else:
        path = path + self.APPENDS[count]
    count +=1
return path
```

## How to use

Sentinel runs multi-threaded as a background process. Launch run.bat or create a scheduled task pointing to run.bat

## Support

If you need some help for something, please reach out to me directly or submit an issue and I'll get to it as soon as I can

## Site

https://poseidon-dev.github.io/sentinel/
graphene-sqlalchemy-auto 1.5.0
generate default graphene schema from sqlalchemy model base on graphene-sqlalchemy
Requires Python: >=3.6

![publish](https://github.com/goodking-bq/graphene-sqlalchemy-auto/workflows/Upload%20Python%20Package/badge.svg)


generate default graphene schema from sqlalchemy model base on [graphene-sqlalchemy](https://github.com/graphql-python/graphene-sqlalchemy.git)

# Installation

just run
```shell script
pip install graphene_sqlalchemy_auto
```
# Features

- auto add `offset` `limit` `totalCount` to pagination
- auto add `dbId` for model's database id
- mutation auto return ok for success,message for more information and output for model data


# How To Use
example :
```python
from graphene_sqlalchemy_auto import QueryObjectType,MutationObjectType
from sqlalchemy.ext.declarative import declarative_base
import graphene
from sqlalchemy.orm import sessionmaker

Base = declarative_base() 
Session = sessionmaker()

class Query(QueryObjectType):
    class Meta:
        declarative_base = Base
        exclude_models = ["User"] # exclude models

class Mutation(MutationObjectType):
    class Meta:
        declarative_base = Base
        session=Session() # mutate used
        
        include_object = []# you can use yourself mutation UserCreateMutation, UserUpdateMutation


schema = graphene.Schema(query=Query, mutation=Mutation)

```

# Query example

just equal
```gql
query{
  userList(filters:{name: "a"}){
    edges{
      node{
        name
        id
        dbId
      }
    }
  }
}
```
OR 
support more expr
```gql
query{
  userList(filters:[{key: "name",op: "==", val: "a"}]){
    edges{
      node{
        name
        id
        dbId
      }
    }
  }
}
```

## op supports:
- *==* 
- *!=* 
- *>=* 
- *<=* 
- *>* 
- *<* 
- *starts* 
- *ends* 
- *contains* 
- *in* 
- *notin* 
- *any* 


# Mutation example
```gql
 createUser(input:{name: "cc",password: "dd"}){
    ok
    output{
      id
      dbId
      name
    }
    message
  }
```

## about Schema names

- model.__class__.name.lower : query a data by id
- model.__class__.name.decapitalize[first lower]+"List": query list  
- create|update|delete+model.__class__.name : mutation data

about many-to-many mutation

>now you can use schema everywhere.some like flask,fastapi

>also more example you can find in [example](https://github.com/goodking-bq/graphene-sqlalchemy-auto/tree/master/example)