feat: add ids based on folder name

This commit is contained in:
Diex5 2024-09-23 08:53:30 +02:00
parent f807a8ca9f
commit 183358c960
427 changed files with 532 additions and 119 deletions

View file

@ -1,39 +1,42 @@
import os import os
import yaml
# Cesta ke složce, kde jsou projekty # Cesta ke složce, kde jsou projekty
projects_folder = './src/projects' projects_folder = './src/projects'
# Počítadla # Funkce na úpravu YAML dat
total_folders = 0 def update_id_in_yaml(file_path, folder_name):
renamed_folders = 0 with open(file_path, 'r') as f:
skipped_folders = 0 try:
data = yaml.safe_load(f) or {} # Načte YAML nebo prázdný slovník
except yaml.YAMLError as exc:
print(f"Chyba při načítání {file_path}: {exc}")
return
# Projde všechny složky v složce projects # Vygeneruj ID na základě názvu složky (lowercase s pomlčkami)
new_id = folder_name.lower().replace(' ', '-').replace('_', '-')
# Zkontroluj, jestli již existuje ID, a porovnej
if 'id' in data:
print(f"Soubor {file_path} již má ID '{data['id']}', nahrazuji s '{new_id}'")
else:
print(f"Soubor {file_path} nemá ID, přidávám '{new_id}'")
# Aktualizuj nebo přidej ID na začátek dat
data['id'] = new_id
# Ulož aktualizovaný soubor zpět
with open(file_path, 'w') as f:
yaml.dump(data, f, default_flow_style=False, sort_keys=False)
# Projde všechny složky ve složce projects
for root, dirs, files in os.walk(projects_folder): for root, dirs, files in os.walk(projects_folder):
for dir_name in dirs: for dir_name in dirs:
total_folders += 1 # Započítáme každou složku folder_path = os.path.join(root, dir_name)
index_file = os.path.join(folder_path, 'index.yaml')
# Získáme původní cestu ke složce # Zkontroluj, jestli soubor 'index.yaml' existuje
original_path = os.path.join(root, dir_name) if os.path.exists(index_file):
update_id_in_yaml(index_file, dir_name)
# Převést název složky na lowercase a nahradit mezery a podtržítka pomlčkami
new_dir_name = dir_name.lower().replace(' ', '-').replace('_', '-')
new_path = os.path.join(root, new_dir_name)
# Pokud je původní název jiný než nový (abychom předešli zbytečným přejmenováním)
if original_path != new_path:
try:
os.rename(original_path, new_path)
print(f"Přejmenovávám složku: '{original_path}' -> '{new_path}'")
renamed_folders += 1
except OSError as e:
print(f"Chyba při přejmenování složky {original_path}: {e}")
else: else:
print(f"Složka '{original_path}' již má správný název, preskakuji.") print(f"Soubor {index_file} neexistuje, preskakuji.")
skipped_folders += 1
# Výsledný souhrn
print("\n--- SOUHRN ---")
print(f"Celkový počet složek: {total_folders}")
print(f"Počet přejmenovaných složek: {renamed_folders}")
print(f"Počet přeskočených složek (již správné): {skipped_folders}")

View file

@ -12,3 +12,4 @@ usecases:
- research-and-development - research-and-development
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: 01-labs

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service - mixing-service
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: 0xtip

View file

@ -14,3 +14,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: '1984'

View file

@ -10,3 +10,4 @@ usecases:
- rpc-provider - rpc-provider
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: 1rpc

View file

@ -10,3 +10,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: 2fa-guru

View file

@ -20,3 +20,4 @@ sunset: false
usecases: usecases:
- nft-community - nft-community
third_party_dependency: false third_party_dependency: false
id: actilist

View file

@ -15,3 +15,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: aesirx-web3-id

View file

@ -22,3 +22,4 @@ usecases:
- computing - computing
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: alaya

View file

@ -43,3 +43,4 @@ third_party_dependency: false
usecases: usecases:
- infrastructure - infrastructure
have_token: false have_token: false
id: aleo

View file

@ -26,3 +26,4 @@ usecases:
- computing - computing
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: aleph-zero

View file

@ -21,3 +21,4 @@ usecases:
- messaging - messaging
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: alter

View file

@ -15,3 +15,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: anagolay

View file

@ -37,3 +37,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anoma

View file

@ -25,3 +25,4 @@ usecases:
- did - did
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anon-aadhaar

View file

@ -8,3 +8,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anon-nero

View file

@ -1,4 +1,4 @@
id: anon-club id: anonklub
name: AnonKlub name: AnonKlub
categories: categories:
- applications - applications

View file

@ -14,3 +14,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: anonybit

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service - mixing-service
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anonzk-incognito

View file

@ -13,3 +13,4 @@ usecases:
- dao - dao
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anydao

View file

@ -16,3 +16,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: anytype

View file

@ -9,3 +9,4 @@ usecases:
- nft-community - nft-community
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: arcana-s-private-nft

View file

@ -31,3 +31,4 @@ tokens:
usecases: usecases:
- infrastructure - infrastructure
third_party_dependency: false third_party_dependency: false
id: arcana

View file

@ -26,3 +26,4 @@ usecases:
- computing - computing
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: arpa

View file

@ -13,3 +13,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: asmatch

View file

@ -25,3 +25,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: asterizm

View file

@ -18,3 +18,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: auth3

View file

@ -21,3 +21,4 @@ project_status:
usecases: usecases:
- infrastructure - infrastructure
third_party_dependency: false third_party_dependency: false
id: automata-network

View file

@ -21,3 +21,4 @@ usecases:
- hardware - hardware
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: avado

View file

@ -13,3 +13,4 @@ usecases:
- hardware - hardware
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: axiatel

View file

@ -11,3 +11,4 @@ usecases:
- bridge - bridge
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: aztec-connect

View file

@ -17,3 +17,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: basic-attention-token

View file

@ -55,3 +55,4 @@ project_status:
usecases: usecases:
- defi - defi
have_token: false have_token: false
id: basicswap

View file

@ -21,3 +21,4 @@ usecases:
- messaging - messaging
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: bcchat

View file

@ -17,3 +17,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: beam-wallet

View file

@ -24,3 +24,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: beam

View file

@ -22,3 +22,4 @@ usecases:
- messaging - messaging
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: beepo

View file

@ -25,3 +25,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: beldex

View file

@ -13,3 +13,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: bermuda

View file

@ -19,3 +19,4 @@ tokens:
usecases: usecases:
- nft-community - nft-community
third_party_dependency: false third_party_dependency: false
id: bidshop

View file

@ -68,3 +68,4 @@ project_status:
usecases: usecases:
- defi - defi
have_token: false have_token: false
id: blackbox

View file

@ -23,3 +23,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: blockwallet

View file

@ -8,3 +8,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: blockyfile

View file

@ -9,3 +9,4 @@ usecases:
- nft-community - nft-community
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: bluum

View file

@ -16,3 +16,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: boltz

View file

@ -10,3 +10,4 @@ usecases:
- alliances - alliances
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: bpsaa

View file

@ -16,3 +16,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: brace

View file

@ -12,3 +12,4 @@ usecases:
- browser - browser
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: brave

View file

@ -15,3 +15,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: brightid

View file

@ -9,3 +9,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: bringing-privacy-to-ens

View file

@ -12,3 +12,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: buildoor

View file

@ -24,3 +24,4 @@ project_status:
usecases: usecases:
- infrastructure - infrastructure
third_party_dependency: false third_party_dependency: false
id: burstiq

View file

@ -20,3 +20,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cake-wallet

View file

@ -19,3 +19,4 @@ usecases:
- operation-systems - operation-systems
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: calyxos

View file

@ -18,3 +18,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cape

View file

@ -12,3 +12,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: cerebrum

View file

@ -18,3 +18,4 @@ sunset: false
usecases: usecases:
- nft-community - nft-community
third_party_dependency: false third_party_dependency: false
id: certup

View file

@ -17,3 +17,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cheqd

View file

@ -22,3 +22,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: chimp-exchange

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cia-protocol

View file

@ -11,3 +11,4 @@ usecases:
- data-management - data-management
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cirus-foundation

View file

@ -11,3 +11,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cog

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: coinbook

View file

@ -10,3 +10,4 @@ usecases:
- mixing-service - mixing-service
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: coinomize

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service - mixing-service
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: coinshuffle

View file

@ -26,3 +26,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: colossusxt

View file

@ -19,3 +19,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: comit-network

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: common

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: conceal-network

View file

@ -29,3 +29,4 @@ project_status:
usecases: usecases:
- infrastructure - infrastructure
third_party_dependency: false third_party_dependency: false
id: concordium

View file

@ -21,3 +21,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cool-wallet

View file

@ -26,3 +26,4 @@ usecases:
- storage - storage
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: crust

View file

@ -26,3 +26,4 @@ project_status:
usecases: usecases:
- messaging - messaging
third_party_dependency: false third_party_dependency: false
id: crypviser-secure-messenger

View file

@ -45,3 +45,4 @@ audits:
usecases: usecases:
- dao - dao
third_party_dependency: false third_party_dependency: false
id: cultdao

View file

@ -30,3 +30,4 @@ usecases:
- mixing-service - mixing-service
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: cyclone

View file

@ -10,3 +10,4 @@ usecases:
- dapps - dapps
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: damus

View file

@ -21,3 +21,4 @@ usecases:
- hardware - hardware
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: dappnode

View file

@ -18,3 +18,4 @@ usecases:
- infrastructure - infrastructure
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: darkfi

View file

@ -14,3 +14,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: dauth-network

View file

@ -16,3 +16,4 @@ usecases:
- browser - browser
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: decentr

View file

@ -21,3 +21,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: decred

View file

@ -20,3 +20,4 @@ usecases:
- hardware - hardware
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: deeper-network

View file

@ -1,21 +1,25 @@
#PROJECT DESCRIPTION -------------------------------------------------------------
name: DeepOnion name: DeepOnion
categories: [applications] categories:
assets_used: ["ZK-SNARKS", "TOR-NETWORK"] - applications
ecosystem: [deeponion-network] assets_used:
- ZK-SNARKS
- TOR-NETWORK
ecosystem:
- deeponion-network
project_type: Hybrid cryptocurrency project_type: Hybrid cryptocurrency
description: DeepOnion (ONION) is a decentralized, open-source, community-driven cryptocurrency that offers multi-layered privacy and everyday use cases. It uses an x13 hybrid PoW/PoS to secure the network. DeepOnion is one of the earliest cryptos to integrate the Tor network into the wallet, which has not leaked any IP addresses since its release on 12 July 2017. description: DeepOnion (ONION) is a decentralized, open-source, community-driven cryptocurrency
that offers multi-layered privacy and everyday use cases. It uses an x13 hybrid
PoW/PoS to secure the network. DeepOnion is one of the earliest cryptos to integrate
the Tor network into the wallet, which has not leaked any IP addresses since its
release on 12 July 2017.
product_readiness: Mainnet product_readiness: Mainnet
product_launch_day: "2017-07-12" product_launch_day: '2017-07-12'
have_token: true have_token: true
tokens: tokens:
- name: DeepOnion - name: DeepOnion
symbol: ONION symbol: ONION
network: DeepOnion Network network: DeepOnion Network
fee: 0.0001 ONION/kB fee: 0.0001 ONION/kB
team: team:
anonymous: true anonymous: true
teammembers: teammembers:
@ -37,24 +41,19 @@ team:
- name: DogLover - name: DogLover
role: Web Developer role: Web Developer
link: https://deeponion.org/community/members/doglover.2258/ link: https://deeponion.org/community/members/doglover.2258/
funding: funding:
name: Community Contributions name: Community Contributions
type: Community Support type: Community Support
link: https://deeponion.org/community link: https://deeponion.org/community
value: Not applicable value: Not applicable
time: Ongoing time: Ongoing
sunset: false sunset: false
# LINKS ---------------------------------------------------------------------
links: links:
web: https://deeponion.org web: https://deeponion.org
github: https://github.com/deeponion/deeponion/ github: https://github.com/deeponion/deeponion/
block_explorer: https://explorer.deeponion.org/ block_explorer: https://explorer.deeponion.org/
forum: https://deeponion.org/community/ forum: https://deeponion.org/community/
whitepaper: https://deeponion.org/White-Paper.pdf whitepaper: https://deeponion.org/White-Paper.pdf
twitter: https://twitter.com/TheDeepOnion twitter: https://twitter.com/TheDeepOnion
facebook: https://www.facebook.com/deeponionx facebook: https://www.facebook.com/deeponionx
telegram: https://t.me/getdeeponion telegram: https://t.me/getdeeponion
@ -62,10 +61,7 @@ links:
gettr: https://gettr.com/user/deeponion gettr: https://gettr.com/user/deeponion
rumble: https://rumble.com/user/DeepOnion rumble: https://rumble.com/user/DeepOnion
primal: http://primal.net/p/npub1l3h54332pdmwnvyg83fsd5g6cfsrdf75mqy3fnh8nxhls0gr2eysm5hucr primal: http://primal.net/p/npub1l3h54332pdmwnvyg83fsd5g6cfsrdf75mqy3fnh8nxhls0gr2eysm5hucr
education: https://deeponion.org/#academy education: https://deeponion.org/#academy
# TECHNOLOGY ---------------------------------------------------------------------
technology: technology:
type: x13 PoW & PoS type: x13 PoW & PoS
features: features:
@ -78,7 +74,6 @@ technology:
- DeepProtocol for encrypted messaging - DeepProtocol for encrypted messaging
- DeepOnionJ for Java integration - DeepOnionJ for Java integration
- VoteCentral for community governance - VoteCentral for community governance
blockchain_features: blockchain_features:
encryption: zksnark encryption: zksnark
opensource: true opensource: true
@ -86,36 +81,28 @@ blockchain_features:
frontend_anonymity: TOR addresses frontend_anonymity: TOR addresses
asset_custody_type: non-custodial asset_custody_type: non-custodial
p2p: true p2p: true
project_status: project_status:
live_status: true live_status: true
version: V2.3.3 version: V2.3.3
testnet: false testnet: false
mainnet: true mainnet: true
client_diversability: client_diversability:
name: DeepOnion Wallet name: DeepOnion Wallet
link: https://deeponion.org/#download link: https://deeponion.org/#download
# PRIVACY ---------------------------------------------------------------------
licences: General Public License licences: General Public License
privacy_policy: privacy_policy:
defined: true defined: true
link: https://deeponion.org/privacypolicy.html link: https://deeponion.org/privacypolicy.html
data_usage: Not using data_usage: Not using
tracebility: tracebility:
kyc: false kyc: false
sign_in_type_requirements: wallet sign_in_type_requirements: wallet
compliance: none compliance: none
storage: storage:
decentralized: true decentralized: true
# SECURITY ---------------------------------------------------------------------
third_party_dependency: false third_party_dependency: false
social_trust: DeepOnion uses a multisig system for governance decisions and has a DAO for community voting. social_trust: DeepOnion uses a multisig system for governance decisions and has a
DAO for community voting.
usecases: [currency] usecases:
- currency
id: deeponion

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: definer

View file

@ -15,3 +15,4 @@ usecases:
- research-and-development - research-and-development
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: demox-labs

View file

@ -21,3 +21,4 @@ project_status:
usecases: usecases:
- infrastructure - infrastructure
third_party_dependency: false third_party_dependency: false
id: dero

View file

@ -10,3 +10,4 @@ usecases:
- rpc-provider - rpc-provider
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: derp

View file

@ -19,3 +19,4 @@ usecases:
- research-and-development - research-and-development
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: discreet-labs

View file

@ -23,3 +23,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: discreet

View file

@ -5,3 +5,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: diva

View file

@ -17,3 +17,4 @@ usecases:
- operation-systems - operation-systems
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: divestos

View file

@ -25,3 +25,4 @@ usecases:
- storage - storage
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: djib

View file

@ -16,3 +16,4 @@ have_token: false
usecases: usecases:
- did - did
third_party_dependency: false third_party_dependency: false
id: dmail-network

View file

@ -21,3 +21,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: dusk-network

View file

@ -17,3 +17,4 @@ usecases:
- currency - currency
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: ecash

View file

@ -25,3 +25,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: edge

View file

@ -20,3 +20,4 @@ usecases:
- research-and-development - research-and-development
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: electric-coin-co

View file

@ -16,3 +16,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: elite

View file

@ -25,3 +25,4 @@ usecases:
- defi - defi
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: elusiv

View file

@ -25,3 +25,4 @@ usecases:
- wallets - wallets
have_token: false have_token: false
third_party_dependency: false third_party_dependency: false
id: email-wallet

Some files were not shown because too many files have changed in this diff Show more