A python package to import files from an adjacent folder

About EasyImports is a python package that allows users to easily access and import files from sister folders:f.ex: – Project – Folder 1 -main.py – Folder 2 -userpackage1.py -other_stuff.py – My Folder -important_package.py if you would try to import anything in main.py that isn’t in Folder 1 you’ll get an error.F.ex: in main.py import userpackage1 from Folder 2 import other_stuff.py import My Folder.important_package.py => Each of these will raise a ModuleNotFoundErrorWith EasyImports this can be fixed. Installing

Read more

It’s time to stop using Python 3.6

Upgrading to new software versions is work, and work that doesn’t benefit your software’s users. Users care about features and bug fixes, not how up-to-date you are. But there is only so much time you can delay upgrading, and for Python 3.6, the time to upgrade is right now. Python 3.6 is reaching its end of life as of December 2021. No more bug fixes. No more security fixes. “It’s dead, Jim.” As of mid-December 2021, 15% of packages downloaded […]

Read more

A TensorFlow implementation for C2-Rec

This is a TensorFlow implementation for C2-Rec We refer to the repo SASRec. Requirements requirement.txt Datasets This repo includes Amazon Beauty dataset as an example. you could also download Amazon review data from here. Model Training To train model on Beauty: python main.py –dataset=Beauty –train_dir=model_train –maxlen=50 –dropout_rate=0.5 –con_alpha=5.0 –rd_alpha=1.0 –neg_test=500 –user_reg_type=kl –lr=0.001 –rd_reduce=mean –neg_sample_n=50 GitHub View Github    

Read more

A Fast Command Analyser based on Dict and Pydantic

Alconna 隶属于ArcletProject, 在Cesloi内有内置 Alconna 是 Cesloi-CommandAnalysis 的高级版,支持解析消息链 一般情况下请当作简易的消息链解析器/命令解析器 文档 暂时的文档 Example from arclet.alconna import Alconna from arclet.alconna.component import Option, Subcommand from arclet.alconna.types import AnyStr cmd = Alconna( command=”/pip”, options=[ Subcommand(“install”, Option(“–upgrade”), pak_name=AnyStr) Option(“list”), ] ) msg =    

Read more
1 335 336 337 338 339 943