diff --git a/README.md b/README.md index 3ce9b55..ed2302d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add `:venomous` to your list of dependencies in `mix.exs`: ```elixir def deps do [ - {:venomous, "~> 0.6.0"} + {:venomous, "~> 0.6.1"} ] end ``` diff --git a/docs/.build b/docs/.build index 847f8ff..a351524 100644 --- a/docs/.build +++ b/docs/.build @@ -30,7 +30,7 @@ dist/lato-latin-ext-300-normal-VPGGJKJL.woff2 dist/lato-latin-ext-400-normal-N27NCBWW.woff2 dist/lato-latin-ext-700-normal-Q2L5DVMW.woff2 dist/remixicon-NKANDIL5.woff2 -dist/search_data-191F28C9.js +dist/search_data-C54F6743.js dist/sidebar_items-09B092B5.js index.html python.html diff --git a/docs/404.html b/docs/404.html index 6c004fc..8261b7e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,12 +5,12 @@ - + - 404 — Venomous v0.6.0 + 404 — Venomous v0.6.1 @@ -56,7 +56,7 @@ Venomous @@ -139,9 +139,9 @@

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Mix.Tasks.Venomous.Watchdog.html b/docs/Mix.Tasks.Venomous.Watchdog.html index 19c743c..a1c1e55 100644 --- a/docs/Mix.Tasks.Venomous.Watchdog.html +++ b/docs/Mix.Tasks.Venomous.Watchdog.html @@ -5,10 +5,10 @@ - + - mix venomous.watchdog — Venomous v0.6.0 + mix venomous.watchdog — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

mix venomous.watchdog - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -206,9 +206,9 @@

uninstall_watchdog()

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.Application.html b/docs/Venomous.Application.html index 2185c3b..b5fb6c6 100644 --- a/docs/Venomous.Application.html +++ b/docs/Venomous.Application.html @@ -5,10 +5,10 @@ - + - Venomous.Application — Venomous v0.6.0 + Venomous.Application — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.Application - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -208,9 +208,9 @@

start(type, args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.PetSnakeManager.html b/docs/Venomous.PetSnakeManager.html index 273132b..1674e19 100644 --- a/docs/Venomous.PetSnakeManager.html +++ b/docs/Venomous.PetSnakeManager.html @@ -5,10 +5,10 @@ - + - Venomous.PetSnakeManager — Venomous v0.6.0 + Venomous.PetSnakeManager — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.PetSnakeManager - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -270,9 +270,9 @@

start_link(args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.PetSnakeSupervisor.html b/docs/Venomous.PetSnakeSupervisor.html index d23e147..4ee9a70 100644 --- a/docs/Venomous.PetSnakeSupervisor.html +++ b/docs/Venomous.PetSnakeSupervisor.html @@ -5,10 +5,10 @@ - + - Venomous.PetSnakeSupervisor — Venomous v0.6.0 + Venomous.PetSnakeSupervisor — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.PetSnakeSupervisor - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -307,9 +307,9 @@

start_link(opts \\ [strategy: :one_for_one,

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SerpentWatcher.html b/docs/Venomous.SerpentWatcher.html index 0bb14bc..fcb8cef 100644 --- a/docs/Venomous.SerpentWatcher.html +++ b/docs/Venomous.SerpentWatcher.html @@ -5,10 +5,10 @@ - + - Venomous.SerpentWatcher — Venomous v0.6.0 + Venomous.SerpentWatcher — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SerpentWatcher - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -142,17 +142,17 @@

Default watcher requires watchdog module, which can be installed with mix venomous.watchdog install Whenever file is edited/created/deleted watcher casts :reload with module name to SnakeManager. The default reload module function imports and reloads the module from its name.

## Configuration

config :venomous,
-  serpent_watcher: [
+  serpent_watcher: [
     enable: true, # Disabled by default
     logging: true, # Hot reload logging. Enabled by default
     module: :serpent_watcher, # default
     func: :watch_directories, #default
     manager_pid: Venomous.SnakeManager # default
-  ]
config :venomous, :snake_manager, %{
+  ]
config :venomous, :snake_manager, %{
   ...
   reload_module: :reload, # default. reload function is hard coded to :reload
   ...
-}
+} @@ -316,9 +316,9 @@

start_link(args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeArgs.html b/docs/Venomous.SnakeArgs.html index ff162db..08756ef 100644 --- a/docs/Venomous.SnakeArgs.html +++ b/docs/Venomous.SnakeArgs.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeArgs — Venomous v0.6.0 + Venomous.SnakeArgs — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeArgs - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -285,9 +285,9 @@

from_params(module, func, args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeError.html b/docs/Venomous.SnakeError.html index 1dad6db..7f784ac 100644 --- a/docs/Venomous.SnakeError.html +++ b/docs/Venomous.SnakeError.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeError — Venomous v0.6.0 + Venomous.SnakeError — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeError - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -217,9 +217,9 @@

t()

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeManager.html b/docs/Venomous.SnakeManager.html index 5642960..7b206a2 100644 --- a/docs/Venomous.SnakeManager.html +++ b/docs/Venomous.SnakeManager.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeManager — Venomous v0.6.0 + Venomous.SnakeManager — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeManager - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -340,9 +340,9 @@

start_link(args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeOpts.html b/docs/Venomous.SnakeOpts.html index def150e..23a6979 100644 --- a/docs/Venomous.SnakeOpts.html +++ b/docs/Venomous.SnakeOpts.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeOpts — Venomous v0.6.0 + Venomous.SnakeOpts — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeOpts - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -206,9 +206,9 @@

to_erlport_opts(opts)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeSupervisor.html b/docs/Venomous.SnakeSupervisor.html index 3617525..ca6489b 100644 --- a/docs/Venomous.SnakeSupervisor.html +++ b/docs/Venomous.SnakeSupervisor.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeSupervisor — Venomous v0.6.0 + Venomous.SnakeSupervisor — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeSupervisor - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -308,9 +308,9 @@

start_link(opts \\ [strategy: :one_for_one,

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.SnakeWorker.html b/docs/Venomous.SnakeWorker.html index 8b1ac96..7f845c1 100644 --- a/docs/Venomous.SnakeWorker.html +++ b/docs/Venomous.SnakeWorker.html @@ -5,10 +5,10 @@ - + - Venomous.SnakeWorker — Venomous v0.6.0 + Venomous.SnakeWorker — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous.SnakeWorker - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -146,14 +146,14 @@

Configuration

-

Python options can be configured inside :venomous :python_opts config key

All of these are optional. However you will most likely want to set module_paths

  @available_opts [
+

Python options can be configured inside :venomous :python_opts config key

All of these are optional. However you will most likely want to set module_paths

  @available_opts [
   :module_paths, # List of paths to your python modules
   :cd, # Change python's directory on spawn. Default is $PWD
   :compressed, # Can be set from 0-9. May affect performance. Read more on [Erlport documentation](http://erlport.org/docs/python.html#erlang-api)
   :envvars, # additional python process envvars
   :packet_bytes, # Size of erlport python packet. Default: 4 = max 4GB of data. Can be set to 1 = 256 bytes or 2 = ? bytes if you are sure you won't be transfering a lot of data.
   :python_executable # path to python executable to use.
-]
+
]
@@ -375,9 +375,9 @@

start_link(args)

- Hex Package + Hex Package - Hex Preview + Hex Preview diff --git a/docs/Venomous.epub b/docs/Venomous.epub index e37989d..d171512 100644 Binary files a/docs/Venomous.epub and b/docs/Venomous.epub differ diff --git a/docs/Venomous.html b/docs/Venomous.html index 3911b62..c2a4c47 100644 --- a/docs/Venomous.html +++ b/docs/Venomous.html @@ -5,10 +5,10 @@ - + - Venomous — Venomous v0.6.0 + Venomous — Venomous v0.6.1 @@ -54,7 +54,7 @@ Venomous

@@ -132,7 +132,7 @@

Venomous - (Venomous v0.6.0) + (Venomous v0.6.1)

@@ -174,29 +174,29 @@

SnakeManager

-

The behavior and management of Snakes can be configured through the following options:

:venomous, :snake_manager, %{
-  snake_ttl_minutes: non_neg_integer(), # Time-to-live for a Snake in minutes. Default is 15 min.
-  perpetual_workers: non_neg_integer(), # Number of Snakes to keep alive perpetually. Default is 10.
-  cleaner_interval: non_neg_integer(), # Interval in milliseconds for cleaning up inactive Snakes. Default is 60_000 ms.
-  erlport_encoder: %{module: atom(), func: atom(), args: list(any())}, # Optional :erlport encoder/decoder python function for converting types. This function is applied to every unnamed python process started by SnakeManager. For more information see [Handling Erlport API](PYTHON.md)
-  }

+

The behavior and management of Snakes can be configured through the following options:

:venomous, :snake_manager, %{
+  snake_ttl_minutes: non_neg_integer(), # Time-to-live for a Snake in minutes. Default is 15 min.
+  perpetual_workers: non_neg_integer(), # Number of Snakes to keep alive perpetually. Default is 10.
+  cleaner_interval: non_neg_integer(), # Interval in milliseconds for cleaning up inactive Snakes. Default is 60_000 ms.
+  erlport_encoder: %{module: atom(), func: atom(), args: list(any())}, # Optional :erlport encoder/decoder python function for converting types. This function is applied to every unnamed python process started by SnakeManager. For more information see [Handling Erlport API](PYTHON.md)
+  }

Python options

-

All of these are optional. However you will most likely want to set module_paths

  config :venomous, :snake_manager, %{
+

All of these are optional. However you will most likely want to set module_paths

  config :venomous, :snake_manager, %{
   ...
-  python_opts: [
-    module_paths: [], # List of paths to your python modules.
+  python_opts: [
+    module_paths: [], # List of paths to your python modules.
     cd: "", # Change python's directory on spawn. Default is $PWD
     compressed: 0, # Can be set from 0-9. May affect performance. Read more on [Erlport documentation](http://erlport.org/docs/python.html#erlang-api)
-    envvars: [], # additional python process envvars
+    envvars: [], # additional python process envvars
     packet_bytes: 4, # Size of erlport python packet. Default: 4 = max 4GB of data. Can be set to 1 = 256 bytes or 2 = ? bytes if you are sure you won't be transfering a lot of data.
     python_executable: "" # path to python executable to use. defaults to PATH
-  ]
+  ]
   ...
-}

### Hot reloading +}

### Hot reloading Requires watchdog python module, which can be installed with mix venomous.watchdog install. Only files inside module_paths config are watched.

  config :venomous, :serpent_watcher, enable: true

@@ -208,9 +208,9 @@

Simple utility to create python elixir compatible classes. VenomousTrait class provides 2 functions: - - def from_dict(cls, erl_map: Map | Dict, structs: Dict = {}) -> cls + - def from_dict(cls, erl_map: Map | Dict, structs: Dict = {}) -> cls # converts Erlport Map or a Dict into the object class - - def into_erl(self) -> Map + - def into_erl(self) -> Map # returns erlang compatible struct from self @@ -397,7 +397,7 @@

adopt_snake_pet(name, opts \\ [])

- + View Source @@ -426,14 +426,14 @@

adopt_snake_pet(name, opts \\ [])

Options

-

Python options can be configured inside :venomous :python_opts config key

All of these are optional. However you will most likely want to set module_paths