You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

epfl-ldap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epfl-ldap

A simple package to interact with the EPFL LDAP


Maintainers
1

Readme

epfl-ldap

Python toolkit for EPFL

Travis


Overview

epfl-ldap is an amazing toolkit that provides basics functionalities to EPFL

  • LDAP search
  • LDAP authenticate
  • etc

License

MIT license - Copyright (c) EPFL

Requirements

Python (2.7, 3.5)

Installation

pip install epfl-ldap

How test

To run tests locally :

pytest

You must create enviroment variables for authenticate

export EPFL_LDAP_TEST_CORRECT_USERNAME=kermit
export EPFL_LDAP_TEST_CORRECT_PWD=xxxxxx

To run tests with coverage in your current python version :

pytest --cov=epflldap

To run mock tests in all python version :

tox

How check PEP8

To check if the python code is PEP8 compliant :

flake8 --max-line-length=120

How to publish a new version

  • Update the CHANGELOG.md file
  • Update the version of this package. See init.py file
  • Generate a new distribution
python setup.py sdist

a new *.tar.gz file is created in dist/

  • Test this new version
  • Push all changes on github (with tests, docs, etc)
  • Publish this new version on pypi
twine upload dist/*

TODO

  • Config flake8 to check PEP8
  • Config pytest
  • Config pytest with coverage
  • Config tox to support many python versions
  • Config mock tests
  • Config travis CI
  • Write doc and publish it on http://docs.readthedocs.io
  • LDAP search
    • Define CONSTANTS
      • ldap_server = 'ldap.epfl.ch'
      • ldap_base = "o=epfl,c=ch"
    • User can define environment variable to override constants
  • LDAP authenticate

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc