semvec/pypi-packages huggingface dataset:
gitlab 1.0.2
Get GitLab user Details

## GitLab

> Get GitLab user Details

## Install

```
$ pip install gitlab
```

## Usage

```python
import gitlab

gitlab.get('yoginth')

"""
{
	'username': 'yoginth',
	'bio': 'Open-Source Enthusiast • Developer & Toolmaker • Pythonista �� • Issue Resolver • Jack �� of all trades, master of none • Beating the odds • I �� science ��',
	'location': 'Parallel Universe',
	'twitter': 'yoginths',
	'linkedin': '',
	'skype': '',
	'website_url': 'https://t.me/yoginth',
	'id': 2580049,
	'state': 'active',
	'avatar_url': 'https://secure.gravatar.com/avatar/ef5eb22b653730b5d7d7c32a73ff64e7?s=80&d=identicon',
	'web_url': 'https://gitlab.com/yoginth'
}
"""
```

## Get Help

There are few ways to get help:

 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.

 2. For bug reports and feature requests, open issues.

 3. For direct and quick help, you can [email me](mailto://yoginth@zoho.com).

## How to contribute
Have an idea? Found a bug? See [how to contribute][contributing].

Thanks!

## License

[MIT][license]

[LICENSE]: https://yoginth.mit-license.org/
[contributing]: /CONTRIBUTING.md
tspy 0.1.1.1
An optimization package for the traveling salesman problem

# tspy: An optimization package for the traveling salesman problem.
The *tspy* package gives a Python framework in which to study the famous [Traveling Salesman Problem](https://en.wikipedia.org/wiki/Travelling_salesman_problem) (TSP). In this package, one can work on specific instances of the TSP. Approximation methods and lower bounds are included by default. The structure of the package makes it easy to create and include your own methods.

## Installation
The *tspy*  package can be installed using *pip*:
```
pip install tspy
```

## How to use tspy
### Creating an instance
To create an instance of the TSP, use:
```python
from tspy import TSP
tsp = TSP()
```
Currently, data can be given to the instance in two ways: by giving it the *NxN* distance matrix *D* or, in the case of an Euclidian TSP, a *NxP* data matrix *X* and a distance function.
```python
# Using the distance matrix
tsp.read_mat(D)

# Using the data matrix and a distance function
tsp.read_data(X, dist)
```

### Computing approximate solutions
The module `tsp.solvers` contains several algorithms providing approximate solutions of TSP instances. For example, the [2-opt](https://en.wikipedia.org/wiki/2-opt) algorithm gives good solutions rather quickly. Here is how it can be used in the *tspy* package:
```python
from tspy.solvers import TwoOpt_solver
two_opt = TwoOpt_solver(initial_tour='NN', iter_num=100)
two_opt_tour = tsp.get_approx_solution(two_opt)
```
Other solvers are used similarly.

Current solutions are stored in the dictionary `tsp.tours`. If a data matrix has been provided to the instance, a plot of the solution can be shown:
```python
tsp.plot_solution('TwoOpt_solver')
```
![alt text](https://github.com/wborgeaud/tspy/blob/master/images/two_opt_sol.jpg)

At any point, the best solution that has been computed can be retrieved:
```python
best_tour = tsp.get_best_solution()
```

### Computing lower bounds
The TSP being *NP-hard*, it is difficult to get exact solutions for large instances. However, by computing lower bounds we can know how good our approximations are. The *tspy* package provides several lower bounds methods. One example is given by the `Simple_LP_bound` which gives the optimal solution of the [LP relaxation](https://en.wikipedia.org/wiki/Linear_programming_relaxation) of the TSP:
```python
from tspy.lower_bounds import Simple_LP_bound
lower_bound = tsp.get_lower_bound(Simple_LP_bound())
```
At any point, the best lower bound that has been computed can be retrieved:
```python
best_lower_bound = tsp.get_best_lower_bound()
```

## Future
The following features will be added soon:
- Genetic programming 
- Ant colony optimization
- Lin–Kernighan heuristic
- Better LP lower bounds

Feel free to contact me if you would like to contribute.


## Author
*tspy* was written by William Borgeaud (williamborgeaud[at]gmail.com).
pypi-code-highlighting-demo 0.1.13
This is a example package that will show how syntax highlighting on PyPI project page works
Keywords: syntax,highlighting,example,rst,render

Syntax highlighting package example
===================================


Introduction
============

This package provides nothing but readme that contains code samples that should be rendered nicely by PyPI warehouse.

Examples
========

- `Python example`_
- `Javascript example`_
- `Bash example`_

==============
Python example
==============

.. code-block:: python

    import some_lib
    from mock_package import PointlessInheritance

    CONST = [n**2 for n in range(5)]

    # spam with eggs
    @requires_authorization
    def somefunc(param1='', param2=0):
        r'''A docstring'''
        if param1 >= param2: # interesting
            breakpoint()
            print('Gre\'ater')
            print(f"Even more awesome greater: {param}")
        return (param2 - param1 + 1 + 0b10) or None

    class SomeClass(PointlessInheritance):
        """This is a dummy class """
        def __init__(self, some_param=[]):
            pass

    message = '''interpreter
    ... prompt'''


================== 
Javascript example
==================
.. code-block:: javascript

    import { Application } from "stimulus";
    
    //comment on some arrow function 
    docReady((block, cls) => {
      if (navigator.appVersion.includes("MSIE 10")) {
        if (document.getElementById("unsupported-browser") !== null) return;
        let warning_div = document.createElement("div");
        if (cls.search(/\bno\-highlight\b/) != -1)
          return process(block, true, 0x0F) + ` class="${cls}"`;
      }

      for (var i = 0 / 2; i < classes.length; i++) {
        if (checkCondition(classes[i]) === undefined)
          var img1 = document.querySelector('.img-1');
          img1.addEventListener('load', function() {
            console.log('undefined');
          });
      }

    });

    export  $docReady;

============
Bash example
============
.. code-block:: bash

    #!/bin/bash

    ###### CONFIG
    SOME_CONSTANT="/path/string/example"
    BE_VERBOSE=false

    if [ "$UID" -ne 0 ]
    then
     echo "Superuser rights required"
     exit 2
    fi

    someRandomFunc(){
     for i in $(ls -la ~/); do cat $i; done;
     echo -e "# I'm in ${HOME_DIR}$1/$2 :"
    }


Changelog
=========

==================
0.1.0 (2018-08-29)
==================

* First version of syntax highlighting example package