Skip to content

Commit

Permalink
Final merge of development branch into main before deleting development.
Browse files Browse the repository at this point in the history
Signed-off-by: pfeairheller <pfeairheller@gmail.com>
  • Loading branch information
pfeairheller committed Apr 5, 2024
2 parents 96c99ce + 8477339 commit 415a27a
Show file tree
Hide file tree
Showing 103 changed files with 15,311 additions and 7,339 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-app-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.4
- name: Set up Python 3.12.2
uses: actions/setup-python@v2
with:
python-version: 3.10.4
python-version: 3.12.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -47,10 +47,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.4
- name: Set up Python 3.12.2
uses: actions/setup-python@v2
with:
python-version: 3.10.4
python-version: 3.12.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -68,10 +68,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.4
- name: Set up Python 3.12.2
uses: actions/setup-python@v2
with:
python-version: 3.10.4
python-version: 3.12.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,7 @@ klid.log
config/

# keripy virtualenv
keripy/
keripy/

# ctags
.tags
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
apt_packages:
- libsodium23
tools:
python: "3.10"
python: "3.12.1"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ We use `--pull=never` to ensure that docker does not implicitly pull a remote im
### Dependencies
#### Binaries

python 3.10.4+
python 3.12.1+
libsodium 1.0.18+


Expand Down Expand Up @@ -66,7 +66,7 @@ $ pip3 install -U cbor2
## Development

### Setup
* Ensure Python 3.10.4 is present along with venv and dev header files;
* Ensure Python 3.12.1 is present along with venv and dev header files;
* Setup virtual environment: `python3 -m venv keripy`
* Activate virtual environment: `source keripy/bin/activate`
* Setup dependencies: `pip install -r requirements.txt`
Expand Down
167 changes: 127 additions & 40 deletions docs/naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,28 @@ When using CapCamelCase or mixedCase the acronyms should be treated as words
when namespacing. First ref is module not package variable such as:
core.behaving, core.clustering

### Public Module Level Class Instances Singletons
UpperCamelCase

### Private Module Level Class Instances Singletons
_LeadingUnderscoreUpperCamelCase

### Public Module Level Methods and Attributes:
lowerCamelCase.
Methods use verbs.
Attributes that are sequences use plural nouns.
Examples: getName setStyle, display, first, last, itemCount, entities, books, data

### Private Module Level Methods and Attributes (not exported by from import `*`):
leadingUnderscoreLowerCamelCase.
_leadingUnderscoreLowerCamelCase.
Methods use verbs.
Attributes that are sequences use plural nouns.
Examples: `_dirtyBit`

### Constants Module Level:
UPPER_CASE_WITH_UNDERSCORES
UPPER_CASE_WITH_UNDERSCORES or ALLUPPERCASE
Not meant to be changed should be numbers or strings.
Examples: MY_CONSTANT
Examples: MY_CONSTANT, SOMECONSTANT

### Dynamic Global Variables (not constants) Module Level:
Capitalized_With_Underscores.
Expand All @@ -158,7 +164,7 @@ When using CapCamelCase or mixedCase the acronyms should be treated as words
Example: TotalInstances, Storage, Store, Redact

### Private Class Attributes, Class Methods, Static Methods:
LeadingUnderscoreUpperCamelCase,
_LeadingUnderscoreUpperCamelCase,
Methods use verbs.
Attributes that are sequences use plural nouns.
Example: `_TotalInstances _Storage __Entries`
Expand All @@ -177,7 +183,7 @@ When using CapCamelCase or mixedCase the acronyms should be treated as words


### Private Instance and Attributes (not exported with from import `*``):
leadingUnderscoreLowerCamelCase.
_leadingUnderscoreLowerCamelCase.
Methods use verbs.
Attributes that are sequences use plural nouns.
Examples: `_getScore _setInternal _lastName _count _entries`
Expand Down Expand Up @@ -207,7 +213,7 @@ Verticle white space matters. Code should have paragraphs. Balanced brackets,
indendation and blank lines demarcate paragraphs

For example

```c
void display(void)
{
int start;
Expand All @@ -217,13 +223,16 @@ void display(void)
if(start == -1)
return;
}
```
is more readable than
```c
void display(void){
int start; start = -1;
if(start == -1) return;
}
```

Line length matters. Which means variable length matters.
Simple logic statments that wrap are no longer simple.
Expand Down Expand Up @@ -271,96 +280,174 @@ that are sufficiently evocative.
## Suffix Mapping

Adjective describing module. What does the module enable one to do.

Verb is the deed or act

Object is actor doer

Place to keep track of or create Objects container or factory

doery actorery doerage actorage

of an Doer is a doery or doage or dodom or dohood

-er -or -eur -ster Agent one who does something brewer (Object Classes)

-ery a place for an actor to act factory brewery (Object Factories)

-ing action of running, wishing (Module Names)

-age state of acting actor to act brewerage

-dom state of doing acting kingdom

-hood state of being childhood

-ship quality of or state of rank of midship

-ize to make itemize

-izer Someone who makes one do itemizer

-ive having nature of active rotative inceptive

-acy -isy -ty quality of linty piracy clerisy

-ion -tion -sion act or state of action itemization

-y -ly like full of happening noisy monthly

patron

patroner

patronist

patronery

patronage

patrondom

patronship

patronacy

patronhood

patronize

patronish

patronive

patronlet

patronly

patrony




### Rules for English suffixes

http://www.paulnoll.com/Books/Clear-English/English-suffixes-1.html
http://www.prefixsuffix.com/rootchart.php


Suffix Meaning Examples Used

able, ible capable of, worthy agreeable, comfortable, credible

age act of or state of salvage, bondage

acy, isy quality hypocrisy, piracy

al, eal, ial on account of related to, action of judicial, official arrival, refusal

ance, ence act or fact of doing state of violence, dependence allowance, insurance

ant quality of one who defiant, expectant, reliant occupant, accountant

er, or, eur agent, one who author, baker, winner, dictator, chauffeur, worker

ed past jumped, baked

ery a place to practice of condition of nunnery, cannery surgery bravery, drudgery

dom state, condition of wisdom, kingdom, martyrdom

ent having the quality of different, dependent, innocent

en made of, to make woolen, wooden, darken

er degree of comparison harder, newer, older 5440
est highest of comparison cleanest, hardest, softest 1339
ful full of graceful, restful, faithful 212
hood state of being boyhood, knighthood, womanhood 61
ible, ile, il capable of being digestible, responsible, docile, civil 783
ier, ior one who carrier, warrior 1114
ify to make magnify, beautify, falsify 125
ic like, made of metallic, toxic, poetic 3774
ing action of running, wishing 5440
ion act or state of confusion, correction, protection 3362
ism fact of being communism, socialism 1147
ish like childish, sheepish, foolish 566
ist a person who does artist, geologist 1375
ity, ty state of majesty, chastity, humanity 4795
itis inflammation of appendicitis, tonsillitis 124
ive having nature of attractive, active 961
ize to make pasteurize, motorize 637
less without motionless, careless, childless 282

let small starlet, eaglet 185
ly like, in a manner happening heavenly, remarkably, suddenly every absolutely, monthly 5440
ment state or quality act of doing accomplishment, excitement placement, movement 680
meter device for measuring thermometer, barometer 166
ness state of blindness, kindness 3322
ology study of geology, zoology, archaeology 374
ous, ious full of joyous, marvelous, furious 1615
ship quality of or state of rank of friendship, leadership lordship
scope instrument for seeing telescope, microscope
some like tiresome, lonesome
tion, sion action, state of being condition, attention, fusion
ty quality or state of liberty, majesty
ward toward southward, forward
y like, full of, diminutive: noisy, sooty, kitty
ure noun from verv indicating act or office seizure prefecture
er degree of comparison harder, newer, older

est highest of comparison cleanest, hardest, softest

ful full of graceful, restful, faithful

-hood noun from noun group state of being boyhood, knighthood, womanhood

ible, ile, il capable of being digestible, responsible, docile, civil

ier, ior one who carrier, warrior

ify to make magnify, beautify, falsify

ic like, made of metallic, toxic, poetic

ing action of running, wishing

ion, sion, tion act or state of being confusion, correction, protection

ism fact of being communism, socialism

ish like childish, sheepish, foolish

ist a person who does artist, geologist

ity, ty state of majesty, chastity, humanity

itis inflammation of appendicitis, tonsillitis

ive having nature of attractive, active

ize to make pasteurize, motorize

less without motionless, careless, childless


let small starlet, eaglet

ly like, in a manner happening heavenly, remarkably, suddenly every absolutely, monthly

ment state or quality act of doing accomplishment, excitement placement, movement

meter device for measuring thermometer, barometer

ness state of blindness, kindness

ology study of geology, zoology, archaeology

ous, ious full of joyous, marvelous, furious

-ship noun from noun quality of state of rank of friendship, leadership lordship

-scope instrument for seeing telescope, microscope

-some like tiresome, lonesome

-tude noun from adjective state of altitude, latitude

-ty quality or state of liberty, majesty

-ward toward southward, forward

-y like, full of, diminutive: noisy, sooty, kitty

-ure noun from verb indicating act or office seizure prefecture



4 changes: 2 additions & 2 deletions images/keripy.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder layer
FROM python:3.10-alpine as builder
FROM python:3.12-alpine as builder

# Install compilation dependencies
RUN apk --no-cache add \
Expand Down Expand Up @@ -32,7 +32,7 @@ RUN . ${HOME}/.cargo/env && \
pip install -r requirements.txt

# Runtime layer
FROM python:3.10.13-alpine3.18
FROM python:3.12.2-alpine3.18

RUN apk --no-cache add \
bash \
Expand Down
2 changes: 1 addition & 1 deletion images/witness.demo.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gleif/keri:1.1.0
FROM gleif/keri:latest

SHELL ["/bin/bash", "-c"]
EXPOSE 5632
Expand Down
10 changes: 0 additions & 10 deletions scripts/demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ following 2 subcommands are available for starting witnesses:

For most of the scripts that require witnesses you will use `kli witness demo` to start the 3 known witnesses.

### Running Agents
Agents can be started in several ways using the `kli agent` subcommands or the shell script `demo/basic/start-agent.sh` for the
scripts that execute `curl` commands against running agents. The following 3 subcommands are available for starting
agents:

* `kli agent start` - starts a single agent (used inside the start-agent.sh scripts)
* `kli agent demo` - starts 4 agents running on known ports (ports that are expected from many of the scripts)
* `kli agent vlei` - starts 10 agents running on known ports for the vLEI ecosystem scripts.

Each directory details how to run agents for the scripts it contains and what parameters need to be passed.

### Additional Software
Some scripts require addition services from other repositories. Those requirements are listed in the README.md files
Expand Down
Loading

0 comments on commit 415a27a

Please sign in to comment.