semvec/pypi-packages huggingface dataset:
notelink 0.0.5
Management your favorite link using CLI.
License: MIT
Requires Python: >=3.6

Notelink CLI
=================================
Management your favorite link using CLI.

(_still on progress_)

## Install
```commandline
pip install notelink
```

## How To Use
### save
```commandline
notelink nsave
notelink nsave https://medium.com/python
notelink nsave https://medium.com/flask \
    https://medium.com/django
```


### list
```commandline
notelink nlist
notelink nlist --list-host
notelink nlist --hostname stackoverflow.com --reverse
```


### search
```commandline
notelink nsearch "python"
notelink nsearch "django" --limit 3
notelink nsearch "django" --limit 3 \
    --hostname medium.com
```



## Contributors

Want to become contributor guys? just PR okay :)


## Authors
<table>
  <tr>
    <td align="center">
      <a href="https://agung96tm.com/">
        <img src="https://avatars.githubusercontent.com/u/1901484?v=4" width="100px;" alt=""/><br />
        <b>Agung Yuliyanto</b><br>
      </a>
      <div>💻</div>
    </td>
  </tr>
</table>
python-jsonparser 1.0
Save time while parsing json or dictionary object in python.
License: MIT

# python-jsonparser

This package will help you to reduce your stress while parsing json in python.
Follow the steps below for using `python-jsonparser`

1. Install the package from pypi

	pip install python-jsonparser


2. Now let's assume we have a json object as below.

	dummy = {
		"name": {
		"first_name": "ABC",
		"last_name": "EFG"
		},
		"details": {
		"phone":["xxxxxxxxx", "00xxxxxxx", "0000000000"]
		}
		}

3. Now assume we want `first_name`, `last_name` and only first `phone` number from the list.
For this create a class `TestClass` as below and inherit JSONParser from :

	from json_parser import JSONParser

	class TestClass(JSONParser):
		first_name = 'name/first_name'
		last_name = 'name/last_name'
		phone = 'details/$1'


4. Create instance of your class and pass the json object.

	test_obj = TestClass(dummy)

5. Now call the validate method from the object created.

	output = test_obj.validate()

6. You will have following as the output:

	{
	'first_name': 'ABC',
	'last_name': 'EFG',
	'phone': '00xxxxxxx'
	}

7. For getting the range of elements from the list you can use `$x:$y`

from json_parser import JSONParser

	class TestClass(JSONParser):
		first_name = 'name/first_name'
		last_name = 'name/last_name'
		phone = 'details/$1:$3'

	Output:
		{
		'first_name': 'ABC',
		'last_name': 'EFG',
		'phone': ['00xxxxxxx', '0000000000']
		}


8. This was all about single object. What if you have json list of objects.
In that case set `many=True` while creating the instance of your class.

	For example:

	test_obj = TestClass(dummy, many=True)
sockets-framework 0.3.1
A tiny framework for easy building customized IPC servers
License: MIT
Requires Python: >=3.9,<4.0
Keywords: ipc,sockets

# Sockets Framework

Sockets Framework will help you to implement an IPC server with your own functionality. It will also provide you with a ready-to-use client to query your server and getting responses from it.

Define your server using `BaseServer`:

```python
from sockets_framework import BaseServer

class MyServer(BaseServer):
    hello = 'Hello'
```

Use `@expose` decorator to expose your API to the client:

```python
from sockets_framework import BaseServer, expose

class MyServer(BaseServer):
    hello = 'Hello'

    @expose
    def hello(self, arg):
        return f"{self.hello} {arg}"
```

You can use any number of helper methods without decorating them:

```python
from sockets_framework import BaseServer, expose

class MyServer(BaseServer):
    hello = 'Hello'

    @expose
    def hello(self, arg):
        return self.validate_hello(arg)

    def validate_hello(self, arg: Any):
        if not isinstance(arg, str):
            return TypeError(arg)
        return f"{self.hello} {arg}"
```

Those methods won't expose to the client API. When API endpoint returns an exception, it will be raised on the client side.

Start `MyServer`:

```python
address = ('localhost', 4000)
server = MyServer(address)
server.start()
```

You can query your server using a `Client` from another environment with `sockets-framework` installed:

```python
from sockets_framework import Session

address = ('localhost', 4000)

with Session(address) as client:
    # you can pass keyword arguments to API request
    response = client.commit("hello", arg="world")
    # or the positional one's
    bob = client.commit("hello", "Bob")
    # you can query different API endpoints per-session
    client.commit("validate_hello", "hello") # NotImplementedError: validate_hello

print(response) # Hello world
print(bob) # Hello Bob

with Session(address) as client:
    # handling exception form the server's response
    try:
        client.commit("hello", 1) # TypeError: 1
    except TypeError:
        print("We are not greeting anyone but strings!")
```

# Features

- Get to your server's functionality implementation instantly
- Don't bother with a low-level sockets programming
- The client for your server comes out of the box and is ready to use

# Installation

Install Sockets Framework by running:

```
pip install sockets-framework
```

# Contribute

- Issue Tracker: [github.com/anatolio-deb/sockets-framework/issues](https://github.com/anatolio-deb/sockets-framework/issues)
- Source Code: [github.com/anatolio-deb/sockets-framework](https://github.com/anatolio-deb/sockets-framework)

# Support

If you are having issues, please let us know.
We have a mailing list located at [sockets-framework@googlegroups.com](mailto:sockets-framework@googlegroups.com)

# License

The project is licensed under the BSD license.