semvec/pypi-packages huggingface dataset:
baguette-client 0.12
Baguette Command Line Interface
Keywords: cli

baguette-client
===============


Help
----

::

    [my-code]$ baguette
    Usage: baguette [OPTIONS] COMMAND [ARGS]...

    Options:
      --help  Show this message and exit.

    Commands:
      app-create           Create an app of the current git repo.
      app-delete           Delete an app.
      app-list             List all the apps.
      build-detail         Detail a build.
      build-list           List all the builds.
      deployment-detail    Detail a deployment.
      deployment-list      List all the deployments.
      deployment-stop      Stop a deployment.
      key-create           Create a key.
      key-delete           Delete a key.
      key-list             List all the keys.
      login                Connect to baguette.io.
      namespace-create     Create a namespace.
      namespace-delete     Delete a namespace.
      namespace-list       List all the namespaces.
      organization-create  Create an organization.
      organization-delete  Delete an organization.
      organization-list    List all the organizations.
      quotas               List all the account quotas.
      signup               Create an account on baguette.io.
sockData 1.0.1
Socket extension

---- sockData - send other data types via socket ----

This library can send other data types than just strings with socket.
You can normally only send strings with socket.
But with this library, you can send all data types that are supported by pickle.

How to use it:
	Sending:
		instead of '<yourConnectedSocket>.send(<string>.encode())'
		type: 'import sockData.send
		sockData.send.sendData(<yourConnectedSocket>, <data>)'
	Receiving:
		instead of '<yourConnectedSocket>.recv(<bufferSize>)'
		type: 'import sockData.receive
		sockData.receive.recvData(<yourConnectedSocket>, <bufferSize>)'

Examples:

server.py:

	import socket
	import sockData.receive

	sock = socket.socket()
	sock.bind(("", 50505))
	sock.listen(1)

	client, addr = sock.accept()

	dictionary = sockData.receive.recvData(client, 1024)
	print(dictionary)

	client.close()

client.py:

	import socket
	import sockData.send

	sock = socket.socket()
	sock.connect(("127.0.0.1", 50505))

	dictionary = {"message": {"from": "127.0.0.1", "msg": "hello!"}}
	sockData.send.sendData(sock, dictionary)

	sock.close()