semvec/pypi-packages huggingface dataset:
django-app-base 0.0.1
A django app for user role based permissions.

# django-app-base

部门权限的作用，部门就是类似人员组，只需要将权限设置在人员组上，并不需要有具体的员工，只要有员工进来就可以获得相应的角色

pip install /d/xunull-repository/xunull-github/public/django-user-role/dist/django_user_role-0.0.1.tar.gz

pip install /d/xunull-repository/xunull-github/public/simple-common/dist/simple_common-0.0.1.tar.gz

python -m django test --settings=tests.settings

python setup.py sdist bdist_wheel
pystata 0.0.1
Access Stata within python
Keywords: python,pandas,regression,Stata


# Pystata
- 1. Save python data to csv
- 2. Use python to write stata do file following regression specifications
- 3. Report regression results and re-read it into python 

# Stata required library (Install if you haven't done so)
- ssc install reghdfe, ftools, esout

----
## Example (See example.ipynb for more details)

```python
from src.pystata import summary_col

# some random combinations of fixed effects
fx_1 = {'Stock fixed effects': 'fx1', 'Year fixed effects': 'fx2'}
fx_2 = {'Stock fixed effects': 'fx1', 'Industry Fixed effects': 'fx3'}
fx_3 = {'Stock fixed effects': 'fx1', 'Year fixed effects': 'fx2', 'Industry Fixed effects': 'fx3'}
# Syntax: [data, regression specification, covariance type (enter cluster list),fixed effects]
reg_inputs = [[data, 'Y  ~ 1  + x1+ x2', 'covariance type', {Fixed Effects}],  # This is an example (column 1)
[data1, 'y  ~ 1  + x1+ x2 ', 'robust', fx_1],  # (column 2) 
[data2, 'y  ~ 1  + x1+ x2 + x3 + x4', 'robust', fx_2],  # (column 3)
[data2, 'y  ~ 1  + x1+ x2 + x3 ', 'robust', fx_2],  # (column 4)
[data1, 'y  ~ 1  + x1+ x2 + x4', ['fx1', 'fx2'], fx_2],  # (column 5)
[data2, 'y  ~ 1  + x1+ x2 + x3 + x4', ['fx1', 'fx2'], fx_3]  # (column 6)
]
outputDir = '/home/user/pystata'  # set the directory to save Stata output (log and results)
table = summary_col(reg_inputs)  # read regression specification
table.set_dir(outputDir)  # set the directory to save Stata output (log and results)
table.name = 'table_pystata'  # set the name of the table
table.modelname = ["Y1", "Y1", "Var", "Variable", "Model name", "Y", ]  # set the name for columns
table.order = ['x1', 'x2', 'x3', 'x4']  # Determine independent variables order
table._main_()  # transit data from python to Stata and write Stata do file accordingly
table.run_do()  # run Stata do file
```
multi-task-stopwatch 0.1.0
Simple stop watch, allowing for timing of a number of tasks.
Requires Python: >=3.6,<4.0

Simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named
task - inspired by Spring Framework

## Usage

```python
import time
from stopwatch.stopwatch import StopWatch

sw = StopWatch("title")

sw.start("eat")
time.sleep(0.12)
sw.stop()

sw.start("sleep")
time.sleep(0.60)
sw.stop()

sw.start("work")
time.sleep(0.35)
sw.stop()

print(sw.pretty_print())
```

result:

```
-----------------------------------------
ms     %     Task name
-----------------------------------------
120          eat
605          sleep
351          work
-----------------------------------------
1077         total
```

## Install

### Pip

Install via pip:

```shell
pip install simple-stopwatch
```