mirror of
https://gitlab.com/fabinfra/fabaccess/pyfabapi.git
synced 2025-03-11 14:21:50 +01:00
Add requirements file; add shebang headers; remove usesless duplicate
This commit is contained in:
parent
2383a6cc0d
commit
69c22e91ae
3
add_del_user.py
Normal file → Executable file
3
add_del_user.py
Normal file → Executable file
@ -1,9 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import asyncio
|
||||
import fabapi
|
||||
import fabapi.user_system
|
||||
|
||||
async def main():
|
||||
session = await fabapi.connect("localhost", 59661, "Testuser", "secret")
|
||||
|
||||
# Add an user with the given roles
|
||||
roles = [
|
||||
"somerole", "testrole"
|
||||
|
2
raw-write.py
Normal file → Executable file
2
raw-write.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import asyncio
|
||||
import fabapi
|
||||
import fabapi.user_system
|
||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
pycapnp==1.3.0
|
2
use_giveback_machine.py
Normal file → Executable file
2
use_giveback_machine.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import asyncio
|
||||
import fabapi
|
||||
import fabapi.user_system
|
||||
|
Loading…
x
Reference in New Issue
Block a user