semvec/pypi-packages huggingface dataset:
django-sqlite-file-cache 0.6.2
A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used
Keywords: django cache sqlite sqlite2 sqlite3 file filebased

# django-sqlite-file-cache
A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used.

[![Build Status](https://travis-ci.com/murrple-1/django-sqlite-file-cache.svg?branch=main)](https://travis-ci.com/murrple-1/django-sqlite-file-cache) [![Coverage Status](https://coveralls.io/repos/github/murrple-1/django-sqlite-file-cache/badge.svg?branch=main)](https://coveralls.io/github/murrple-1/django-sqlite-file-cache?branch=main) [![PyPI version](https://badge.fury.io/py/django-sqlite-file-cache.svg)](https://badge.fury.io/py/django-sqlite-file-cache)

Supports both Python `>=v2.7` and `>=3.4`.

# Installation

`pip install django-sqlite-file-cache`

# Usage

## Add to your Django CACHES

```python
CACHES = {
    'default': {
        'BACKEND': 'django_sqlite_file_cache.SQLiteFileCache',
        'LOCATION': '/var/tmp/django_cache/cache.db',
    }
}
```

Ensure `LOCATION` path is readable/writable by the web server's user

See https://docs.djangoproject.com/en/3.1/topics/cache/ for more options
vec2vec 0.0.5
vec2vec project

# vec2vec

This repository provides a reference implementation of vec2vec, which can reduce the dimension to matrix.


### Requirements
Before starting this project, you must install requirements below.

```
faiss==1.7.0
gensim==4.0.1
networkx==2.6.2
scikit-learn==0.24.2
```

Note：It's recommended that using conda to install faiss, and conda version need to update.

```
conda install faiss-cpu -c conda-forge
```

### Basic Usage

1. To run *vec2vec*  by terminal, execute the following command from the project home directory:
   ```
   python ./vec2vec/main.py --input ./vec2vec/data/train.bow
   ```
   
   You can check out the other options available by using:
   ```
   python ./vec2vec/main.py  --help
   ```

2. To run the vec2vec in your project, execute the following command:

   ```
   pip install vec2vec
   ```

### Input
Refer to the ./vec2vec/data/train.bow in the project.

### Output
The output are like below:

	************* The number of num_walks is : 5 *******************
	Matrix2vec p and q and topk: 1 1 10
	The shape of the input matrix: (2000, 13155)
	BuildNNGraphFromFAISS Finished in 0:00:03.305026 s.
	The shape of the adjmatrix is: (2000, 2000)
	Preprocess_transition_probs Finished in 0:00:00.902988 s.
	Random Walk Finished in 0:00:00.590795 s.
	Begin to train word2vec...
	Model Matrix2vec Finished in 0:00:09.073013 s.
	Accuracy：  [0.662 0.652 0.64  0.668]
	Accuracy: 0.6555 (+/- 0.0212)

### Miscellaneous

Please send any questions you might have about the code and/or the algorithm to xiangwangcn@163.com.
discordbot-sync 1.2.2
A wrapper for the Discord API that doesn't require you to use asyncio
Requires Python: >=3.6

# Discordbot

This package provides an interface to the RESTful and websocket Discord API so users don't have to worry about rate limits, asyncio, or error handling.

It's as simple as:
```py
import discordbot as discord

bot = discord.Bot("my_api_token")

def on_message(raw_event, message):
	print(message.author, "sent a message in", message.channel, "which said", message.content)
	
	if message.content == "!ping":
		bot.send_message(message.channel, "Pong!")
bot.on_event(discord.event.guild_message_sent, on_message)

bot.run()
```

discordbot also provides a simple way to add commands to your bot
```py
import discordbot as discord

bot = discord.Bot("my_api_token")

role_moderator = '00000000000000' # the id of the role which is required to use the kick command

def cmd_kick(message, member, reason):
    bot.kick(message.guild, member, reason)
    bot.send_message(message.channel, "Member %s kicked. They are allowed to re-join. Ban them if you do not want this behavior." % member, reply_to = message, reply_ping = False)
bot.register_command("kick", "Temporarily remove someone from the server", cmd_kick, required_role = role_moderator, args = [
    {
        "name": "member",
        "description": "The member to kick",
        "type": "user"
    },
    {
        "name": "reason",
        "description": "Reason for kick",
        "type": "string",
        "default": None
    }
])

bot.command_prefix = "!"

bot.register_default_commands() # (optional) adds !cmds and !ping

bot.run()
```

for more examples, please see this [project on github](https://github.com/GabeMillikan/discordbot-sync/tree/main/examples)