botnee consente di eseguire unit test eseguendolo dalla riga di comando, ad esempio:
python botnee
o in ipython:
>>> Run botnee / __ init__.py
Il pacchetto è strutturato come segue:
botnee
& Nbsp; & nbsp; & nbsp; - Botnee_config & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File di configurazione
& Nbsp; & nbsp; & nbsp; - debug alcuni aiutanti di debug
& Nbsp; & nbsp; & nbsp; - doc_store Classe DocStore, che si occupa della raccolta dei dati MongoDB meta
& Nbsp; & nbsp; & nbsp; - engine Punto di ingresso principale - si collega al database e file carichi
& Nbsp; & nbsp; & nbsp; - errors Gestori di errore personalizzate
& Nbsp; & nbsp; & nbsp; - filters Classe di applicare filtri per risultati recuperati
& Nbsp; & nbsp; & nbsp; - Get_related & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Funzioni per recuperare contenuto correlato da id, indice o testo libero
& Nbsp; & nbsp; & nbsp; - json_io lettura dei file JSON e gestione di collegamento MongoDB
& Nbsp; & nbsp; & nbsp; - process motore di elaborazione principale
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - data_dict Wrapper di dict standard per data_dict variabile
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - meta_dict Wrapper di dict standard per variabili meta_dict
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - text l'elaborazione del testo
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Vector_space_model & nbsp; & nbsp; & nbsp; TF-IDF etc
& Nbsp; & nbsp; & nbsp; - Rss_writer & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Simple RSS scrittore che utilizza WebHelpers Rss201rev2Feed
& Nbsp; & nbsp; & nbsp; - Standard_document_io & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; lettura di file di documenti standard,
& Nbsp; & nbsp; & nbsp; - Test
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Test_corpus & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; unit test per la classe Corpus
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Test_process & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test unità per il modulo di processo
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Test_standard_document_io
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Test_json_io
& Nbsp; & nbsp; & nbsp; - TimeoutLock & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; classe per bloccaggio timeout
& Nbsp; & nbsp; & nbsp; - timer funzioni di temporizzazione utili
& Nbsp; & nbsp; & nbsp; - Web
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Gestire i & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; interfaccia di gestione django per l'interfaccia web per botnee
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Impostazioni & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; file di impostazioni django
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - urls imposta URL attivi
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Interfaccia
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; | & Nbsp; & nbsp; - Modelli & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; caricamento iniziale di strutture di dati
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; | & Nbsp; & nbsp; - Test & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; unit test
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; | & Nbsp; & nbsp; - Vista & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; codice per gestire vista interazione (invio di moduli, ecc)
& Nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; - Modelli & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; modelli HTML (pagine di destinazione)
dipendenze esterne
IPython
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Debugger
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Tracer (Botnee.search, botnee.debug)
& Nbsp; & nbsp; & nbsp; bidict (botnee.persistent_dict)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -bidict (botnee.process.meta_dict,botnee.doc_store,botnee.process.text,botnee.process.matrix_dict,botnee.process.vector_space_model,botnee.doc_manager_store,botnee.process.data_dict,botnee.corpus)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -inverted (Botnee.corpus)
& Nbsp; & nbsp; & nbsp; botnee
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -START_TIME (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -corpus
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -Corpus (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -doc_manager_store
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -DocManagerStore (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -doc_store
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -DocStore (Botnee.process.text, botnee.engine, botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Engine
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -Engine (Botnee.web.interface.models, botnee.get_related)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -get_related
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -GetRelated (Botnee.web.interface.models)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -persistent_dict
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -PersistentDict (Botnee.process.data_dict, botnee.process.meta_dict, botnee.process.matrix_dict)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -process
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -data_dict
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -DataDict (Botnee.process.text, botnee.corpus, botnee.engine, botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -matrix_dict
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -MatrixDict (Botnee.get_related, botnee.engine, botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -meta_dict
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -MetaDict (botnee.process.text,botnee.corpus,botnee.get_related,botnee.engine,botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -text
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -process_docs (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -process_raw_text (Botnee.get_related)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -time_dict
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | | -TimeDict (botnee.process.text,botnee.corpus,botnee.get_related,botnee.engine,botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -vector_space_model
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; -vector_space_model (Botnee.get_related, botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -standard_document
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -StandardDocument (botnee.standard_document_io,botnee.doc_store,botnee.process.text,botnee.engine,botnee.doc_manager_store)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -timeout_lock
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -TimeoutLock (Botnee.web.interface.views, botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Web
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Interfaccia
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Modelli
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Engine (botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -get_related (botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; BSON (botnee.doc_store, botnee.get_related, botnee.doc_manager_store)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -il Codice
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Code (Botnee.doc_store, botnee.doc_manager_store)
& Nbsp; & nbsp; & nbsp; dateutil
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -parser (Botnee.standard_document_io)
& Nbsp; & nbsp; & nbsp; django
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -conf
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -urls
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; -defaults
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; & nbsp; & nbsp; -include (botnee.web.urls)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; & nbsp; & nbsp; -patterns (botnee.web.urls)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; & nbsp; & nbsp; -url (botnee.web.urls)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -contrib
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | Admin (botnee.web.urls)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Core
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -Gestione
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; -execute_manager (Botnee.web.manage)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -db
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -Modelli (Botnee.web.interface.models)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Forme (botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -http
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -HttpResponse (Botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -middleware
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -gzip
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | & Nbsp; & nbsp; -GZipMiddleware (Botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -shortcuts
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -render_to_response (Botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -template (botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -test
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; | -TestCase (Botnee.web.interface.tests)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -vista Panoramica
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -decorators
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -csrf
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -csrf_exempt (botnee.web.interface.views)
& Nbsp; & nbsp; & nbsp; itertools
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -GroupBy (Botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; NLTK (botnee.test.test_corpus)
& Nbsp; & nbsp; & nbsp; NumPy (botnee.doc_store,botnee.process.text,botnee.engine,botnee.process.matrix_dict,botnee.process.vector_space_model,botnee.search,botnee.persistent_dict,botnee.json_io,botnee.filter_results,botnee.process.data_dict,botnee.corpus,botnee.get_related,botnee.debug)
& Nbsp; & nbsp; & nbsp; ordereddict (botnee.persistent_dict)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -OrderedDict (botnee.process.time_dict,botnee.standard_document,botnee.process.meta_dict,botnee.process.text,botnee.process.matrix_dict,botnee.process.vector_space_model,botnee.process.data_dict,botnee.corpus)
& Nbsp; & nbsp; & nbsp; pp (botnee.engine)
& Nbsp; & nbsp; & nbsp; psutil (botnee.engine)
& Nbsp; & nbsp; & nbsp; pymongo (botnee.doc_store, botnee.doc_manager_store)
& Nbsp; & nbsp; & nbsp; SciPy (botnee.process.vector_space_model)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -sparse Consente (botnee.doc_store,botnee.engine,botnee.process.matrix_dict,botnee.search,botnee.filter_results,botnee.process.data_dict,botnee.corpus,botnee.get_related,botnee.debug)
& Nbsp; & nbsp; & nbsp; setproctitle
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -setproctitle (Botnee.web.manage, botnee)
& Nbsp; & nbsp; & nbsp; tempo
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -asctime (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -localtime (Botnee.engine)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -time (botnee.doc_store,botnee.web.interface.views,botnee.process.text,botnee.process.vector_space_model,botnee.engine,botnee.doc_manager_store,botnee.corpus,botnee.debug,botnee.test.test_corpus)
& Nbsp; & nbsp; & nbsp; webhelpers
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -feedgenerator
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; -Rss201rev2Feed (Botnee.rss_writer)
Requisiti :
- Python
I commenti non trovato