Skip to content
Snippets Groups Projects
Commit 58aeaa78 authored by Gisle Aas's avatar Gisle Aas
Browse files

Present information about technologies

parent a65576d8
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,49 @@ for tech in people_tech + service_tech:
print("| " + tech + " | " + str(people_tech[tech]) + " | " + str(service_tech[tech]) + " |")
print()
techs = data['tech']
for svc in map(Service, data['services']):
tech = svc.info.get('tech')
if tech:
for t in tech:
if t not in techs:
techs[t] = {}
if 'svc' not in techs[t]:
techs[t]['svc'] = 0
techs[t]['svc'] += 1
for person in map(Person, data['people']):
tech = person.info.get('tech')
if tech:
for t in tech:
lvl, t = t.split(' ')
if int(lvl) < 1:
continue
if t not in techs:
techs[t] = {}
if 'people' not in techs[t]:
techs[t]['people'] = 0
techs[t]['people'] += 1
for t, tech in techs.items():
tech['id'] = t
if 'name' not in tech:
tech['name'] = t.capitalize()
if 'type' not in tech:
tech['type'] = 'unknown'
tech['type_name'] = data['tech-type'].get(tech['type'], {}).get('name', '99 ' + tech['type'].capitalize())
print("# Technologies")
last_type = ''
for tech in sorted(techs.values(), key= lambda t: (t['type_name'], t['name'])):
if tech['type_name'] != last_type:
print()
print('## ' + tech['type_name'])
print()
last_type = tech['type_name']
print("* ", tech['name'], ' ', '💈' * tech.get('svc', 0) + '👩' * tech.get('people', 0))
print()
if 0:
print("\n# Data dump\n\n```")
print(yaml.dump(data))
......
......@@ -115,6 +115,8 @@ people:
- 3 laravel
cdo021:
name: Chernet Dotche
tech:
- 2 sharepoint
lei002:
name: Lill Eilertsen
team: pub
......@@ -199,6 +201,10 @@ tech:
name: Elastic search
type: db
url: https://en.wikipedia.org/wiki/Elasticsearch
excel:
name: Excel
type: app
url: https://en.wikipedia.org/wiki/Microsoft_Excel
ezpublish:
name: eZ Publish
type: cms
......@@ -224,6 +230,10 @@ tech:
name: Mediawiki
type: cms
url: https://www.mediawiki.org
mssql:
name: Microsoft SQL
type: db
url: https://en.wikipedia.org/wiki/Microsoft_SQL_Server
mysql:
name: MySQL and MariaDB
type: db
......@@ -231,7 +241,7 @@ tech:
nginx:
name: Nginx
type: web-server
type: https://nginx.org
url: https://nginx.org
node:
name: Node
type: runtime
......@@ -291,32 +301,36 @@ tech:
sqlite:
name: Sqlite
type: db
tomcat:
type: runtime
uwsgi:
type: runtime
varnish:
name: Varnish
type: web-cache
type: web-server
wordpress:
name: Wordpress
type: cms
tech-type:
app:
name: Application
name: 01 Application
cms:
name: Content Management System
web-framwork:
name: Web Framework
name: 02 Content Management System
web-framework:
name: 03 Web Framework
lang:
name: Programming language
name: 04 Programming language
db:
name: Database
name: 05 Database
api:
name: Web API
name: 06 Web API
web-server:
name: Web server
name: 07 Web server
runtime:
name: Runtime environment
name: 08 Runtime environment
tool:
name: Tool
name: 09 Tool
services:
apex:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment