pts-tdk-lambda-psu


Namepts-tdk-lambda-psu JSON
Version 0.0.11 PyPI version JSON
download
home_pagehttps://gitlab.com/pass-testing-solutions/tdklambda_psu_interface
SummaryTDK Lambda PSU Diagnostic Package
upload_time2023-09-11 17:16:50
maintainer
docs_urlNone
authorPass testing Solutions GmbH
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TDKLambda_PSU_Interface

#### Interface and diagnostic tests for the TDK Lambda PSU Z+ series

## Clone repository
```
cd <path-to-directory>
git clone git@gitlab.com:pass-testing-solutions/tdklambda_psu_interface.git
cd tdklambda_psu_interface/
git pull origin main
git checkout -b <your-new-branch>  # Please follow the branch naming convention as mentioned in the coding guidelines
```
## Virtual environment on MacOS

### 1. Virtualenvwrapper
You can install virtualenv and virtualenvwrapper with:
```
pip3 install virtualenv
pip3 install virtualenvwrapper
mkdir ~/.virtualenvs
# Might need to query where the virtualenv and virtualenvwrapper.sh are
which virtualenv
which virtualenvwrapper.sh
which python3
```
Add these lines in the ~/.zshrc file 
````
# Setting PATH for Python 3 installed by brew
export PATH=<path-to-your-python3>:$PATH

# Configuration for virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=<path-to-your-python3>
export VIRTUALENVWRAPPER_VIRTUALENV=<path-to-your-virtualenv>
source <path-to-your-virtualenvwrapper.sh>

source $ZSH/oh-my-zsh.sh
````
Make sure to save these changes in your file and close your terminal for them to take effect.
Now you can create a virtual environment by simply typing:
```
mkvirtualenv <name-of-your-virtual-env>
cd <your-git-repository>
workon <name-of-your-virtual-env>
deactivate <name-of-your-virtual-env>
```
To add the correct interpreter for your repository on PyCharm:
```
- PyCharm IDE > Preferences > Project > Python Interpreter
- Select the 'Add' button for interpreters
- Choose the 'Existing environments' in 'Virtualenv'
- Add the python3 file from /bin/ of your venv folder
E.g. - .virtualenvs/demo_repo_venv/bin/python3
```
After setting up the venv for the repo please install all the 
requirements and allow some time for the IDE to do indexing. If your repository has a requirements.txt: 
```
pip3 install -r requirements.txt
```

### 2. Pipenv
Install pipenv
```
pip3 install pipenv 
# or
brew install pipenv

pipenv shell         # will create a virtualenv for the project
pipenv install       # will install dependencies for the repo from the Pipfile and Pipfile.lock

# Install any further packages in this environment as

pipenv install rich  # rich is a python library to nicely print on terminal
```
Your pipenv environment will be in the ~./virtualenvs folder.
Make sure to add the interpreter on your IDE if not automatically added by navigating to the virtualenv folder for your repo and selecting the correct python3 file from /bin/.

***

## Maintainers
Maintainers: @julianpass and @shuparnadeb_pts


            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/pass-testing-solutions/tdklambda_psu_interface",
    "name": "pts-tdk-lambda-psu",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pass testing Solutions GmbH",
    "author_email": "shuparna@pass-testing.de",
    "download_url": "https://files.pythonhosted.org/packages/de/1a/998074715e63f55b17419275b92149fdbe5499c6a2955f686588115a9d2a/pts_tdk_lambda_psu-0.0.11.tar.gz",
    "platform": null,
    "description": "# TDKLambda_PSU_Interface\n\n#### Interface and diagnostic tests for the TDK Lambda PSU Z+ series\n\n## Clone repository\n```\ncd <path-to-directory>\ngit clone git@gitlab.com:pass-testing-solutions/tdklambda_psu_interface.git\ncd tdklambda_psu_interface/\ngit pull origin main\ngit checkout -b <your-new-branch>  # Please follow the branch naming convention as mentioned in the coding guidelines\n```\n## Virtual environment on MacOS\n\n### 1. Virtualenvwrapper\nYou can install virtualenv and virtualenvwrapper with:\n```\npip3 install virtualenv\npip3 install virtualenvwrapper\nmkdir ~/.virtualenvs\n# Might need to query where the virtualenv and virtualenvwrapper.sh are\nwhich virtualenv\nwhich virtualenvwrapper.sh\nwhich python3\n```\nAdd these lines in the ~/.zshrc file \n````\n# Setting PATH for Python 3 installed by brew\nexport PATH=<path-to-your-python3>:$PATH\n\n# Configuration for virtualenv\nexport WORKON_HOME=$HOME/.virtualenvs\nexport VIRTUALENVWRAPPER_PYTHON=<path-to-your-python3>\nexport VIRTUALENVWRAPPER_VIRTUALENV=<path-to-your-virtualenv>\nsource <path-to-your-virtualenvwrapper.sh>\n\nsource $ZSH/oh-my-zsh.sh\n````\nMake sure to save these changes in your file and close your terminal for them to take effect.\nNow you can create a virtual environment by simply typing:\n```\nmkvirtualenv <name-of-your-virtual-env>\ncd <your-git-repository>\nworkon <name-of-your-virtual-env>\ndeactivate <name-of-your-virtual-env>\n```\nTo add the correct interpreter for your repository on PyCharm:\n```\n- PyCharm IDE > Preferences > Project > Python Interpreter\n- Select the 'Add' button for interpreters\n- Choose the 'Existing environments' in 'Virtualenv'\n- Add the python3 file from /bin/ of your venv folder\nE.g. - .virtualenvs/demo_repo_venv/bin/python3\n```\nAfter setting up the venv for the repo please install all the \nrequirements and allow some time for the IDE to do indexing. If your repository has a requirements.txt: \n```\npip3 install -r requirements.txt\n```\n\n### 2. Pipenv\nInstall pipenv\n```\npip3 install pipenv \n# or\nbrew install pipenv\n\npipenv shell         # will create a virtualenv for the project\npipenv install       # will install dependencies for the repo from the Pipfile and Pipfile.lock\n\n# Install any further packages in this environment as\n\npipenv install rich  # rich is a python library to nicely print on terminal\n```\nYour pipenv environment will be in the ~./virtualenvs folder.\nMake sure to add the interpreter on your IDE if not automatically added by navigating to the virtualenv folder for your repo and selecting the correct python3 file from /bin/.\n\n***\n\n## Maintainers\nMaintainers: @julianpass and @shuparnadeb_pts\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "TDK Lambda PSU Diagnostic Package",
    "version": "0.0.11",
    "project_urls": {
        "Homepage": "https://gitlab.com/pass-testing-solutions/tdklambda_psu_interface"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53def438681a7847b96a79d71b036e8bdb308b068d208f1a1148744e051da6f2",
                "md5": "ee9fb0aad462d4167b232b09a7fbe0ab",
                "sha256": "384b98a9ba84eb87c9f02f376d358f83ef635be5ac159c523f2313620a037776"
            },
            "downloads": -1,
            "filename": "pts_tdk_lambda_psu-0.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee9fb0aad462d4167b232b09a7fbe0ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6817,
            "upload_time": "2023-09-11T17:16:49",
            "upload_time_iso_8601": "2023-09-11T17:16:49.493524Z",
            "url": "https://files.pythonhosted.org/packages/53/de/f438681a7847b96a79d71b036e8bdb308b068d208f1a1148744e051da6f2/pts_tdk_lambda_psu-0.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de1a998074715e63f55b17419275b92149fdbe5499c6a2955f686588115a9d2a",
                "md5": "8a871ee52fcd1a500171bbc03ab9bc36",
                "sha256": "2f03acc3573a6903a686d8f512681788fbb71adf17ac4f746274112e37febae3"
            },
            "downloads": -1,
            "filename": "pts_tdk_lambda_psu-0.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "8a871ee52fcd1a500171bbc03ab9bc36",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6079,
            "upload_time": "2023-09-11T17:16:50",
            "upload_time_iso_8601": "2023-09-11T17:16:50.990142Z",
            "url": "https://files.pythonhosted.org/packages/de/1a/998074715e63f55b17419275b92149fdbe5499c6a2955f686588115a9d2a/pts_tdk_lambda_psu-0.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-11 17:16:50",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "pass-testing-solutions",
    "gitlab_project": "tdklambda_psu_interface",
    "lcname": "pts-tdk-lambda-psu"
}
        
Elapsed time: 0.12804s