Skip to content

SergiiSenchurov/wrapper_package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Wrapper Package

This is a simple wrapper package. See also test task

Usage examples

delete_post(post(id=2))
single_post = get_post(id = 2)
print(single_post)
multiple_posts = get_posts()
print(multiple_posts)
print(post_posts(single_post))
print(post_posts(multiple_posts))
print(put_post(single_post))
print(post(id=3))

To install wrapper package use the following command line

pip install "git+https://github.com/SergiiSenchurov/wrapper_package"

Build package

# install in a virtual environment
python3 -m venv tutorial_env   
source tutorial_env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build 
pip install "git+https://github.com/SergiiSenchurov/wrapper_package"

# test
pytest

# every (re)build
deactivate
rm -rf tutorial_env/
python3 -m build 

PYTHONPATH

If necessary (50/50), edit tutorial/bin/activate and add corresponding path to site-packages :

export PYTHONPATH="/Users/sergii.senchurov/Documents/Ring/python_package/wrapper_package/tutorial_env/lib/python3.10/site-packages/"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages