{"id":13557586,"url":"https://github.com/digitalfox/pydici","last_synced_at":"2025-04-10T01:12:10.891Z","repository":{"id":816893,"uuid":"527574","full_name":"digitalfox/pydici","owner":"digitalfox","description":"CRM, billing  and staffing management web tool for consulting company","archived":false,"fork":false,"pushed_at":"2025-03-30T14:41:56.000Z","size":11709,"stargazers_count":143,"open_issues_count":32,"forks_count":66,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-10T01:12:05.625Z","etag":null,"topics":["consulting","crm","django","enterprise","erp","python"],"latest_commit_sha":null,"homepage":"http://www.enioka.com/pydici-web/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalfox.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-02-20T16:23:56.000Z","updated_at":"2025-03-30T14:41:59.000Z","dependencies_parsed_at":"2024-01-13T18:48:49.808Z","dependency_job_id":"9ecfad85-e548-4c38-8163-ad188768ce1f","html_url":"https://github.com/digitalfox/pydici","commit_stats":{"total_commits":3408,"total_committers":23,"mean_commits":"148.17391304347825","dds":0.471830985915493,"last_synced_commit":"57e3eb38b5366c6da29ce7712554fa1e6a53af64"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalfox%2Fpydici","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalfox%2Fpydici/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalfox%2Fpydici/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalfox%2Fpydici/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalfox","download_url":"https://codeload.github.com/digitalfox/pydici/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137888,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consulting","crm","django","enterprise","erp","python"],"created_at":"2024-08-01T12:04:26.116Z","updated_at":"2025-04-10T01:12:10.876Z","avatar_url":"https://github.com/digitalfox.png","language":"Python","funding_links":[],"categories":["Python","django"],"sub_categories":[],"readme":"Pydici is a software for consulting/IT services company to manage:\n- commercial leads workflow (from business detection to sales)\n- Simple CRM\n- workload schedule to forecast people activity\n- operation management: timesheet, margin control,\n- billing\n- optional integration with Nextcloud to manage files\n\nIt is written in Python using the Django framework.\n\n\n# LICENSE\n\nPydici is available under the GNU Affero Public License v3 or newer (AGPL 3+).\nhttp://www.gnu.org/licenses/agpl-3.0.html\n\n# AUTHOR\n\nSébastien Renard (Sebastien.Renard@digitalfox.org).\n\n\n# INSTALLATION\n## Production pre requisites:\n* python \u003e= 3.11 (it should work with python 3.9 but it's not tested anymore)\n* mariadb (tested with 10.X)\n* memcached\n* redis\n* ghostscript\n\nPydici can be installed as any Django project. Just drop the code somewhere\nand setup your favorite wsgi server (apache/mod_wsgi, gunicorn, uwsgi etc.).\n\n## Development environment\n\nTo install all python prerequisites, please do the following: pip install -r requirements.txt. It is strongly advised to use a virtual env.\nYou will need a running mysql or mariadb with a database named pydici (see pydici/settings.py for default credential)\n\nFor development (and only for development), a docker-compose file can be used with mariadb, redis, memcached setup :\n\n    docker-compose up\n\n## Detailed Installation\n\nDrop source code in a directory readable by your wsgi server user \n   git clone https://github.com/digitalfox/pydici.git\n\nCreate a virtual env in a directory readable by your apache user and activate it\n\n     virtual-env venv\n    . venv/bin/activate\n\nInstall prerequisites :\n\n    pip install -r \u003cpath to pydici source code\u003e/requirements.txt\n\nSetup your favorite database (mysql/mariaDB or postgresql, mariadb is recommended) and create a schema/base (with UTF-8 character set please) with a valid user that can create/alter/select/delete/update its objects.\n\nConfigure your database in pydici/settings.py. Look at django docs to understand the various database options.\n\nCreate tables with :\n\n    ./manage.py migrate\n\nGenerate a new secret key with ./manage.py generate_secret_key and put it in pydici/settings.py\n\nCollect static files with :\n\n    ./manage.py collectstatic\n\nSetup your apache virtual env:\n\n- activate mod_wsgi.\n- activate ssl\n- active mod_expires\n- add Alias to /media and /static\n- define auth backend. \n  - By default, pydici is designed to work with an http front end authentication. Look at https://docs.djangoproject.com/en/dev/howto/auth-remote-user/\n  - In debug mode, django userswitch is provided, go to /admin/ and select user in droplist\n\nPeriodic tasks are ran by Celery. Scheduling setup is in settins/pydici_celery.py\n\n## Creating initial database\n\nTo create the initial database:\n\n        ./manage.py migrate\n\nOr with docker, on development environment : \n\n      docker exec pydici_django_1 python manage.py migrate\n\nTo create sample data for dev or demo : \n\n      docker exec pydici_django_1 python manage.py create_test_data\n\n\n## Notes about scikit learn\nScikit learn is a machine learning framework for python. It is an optional Pydici deps that can predict leads tags and state.\nSome comments:\n\n- You need to install scikit-learn, numpy and scipy (pip install -r requirements-sklearn.txt)\n- You might need to add the following directive in your apache virual host file to avoid some nasty deadlock during init when using scikit learn : WSGIApplicationGroup %{GLOBAL}\n- For proper model caching, you might need to increase memcached object size (1m =\u003e 10m) as well as your python client memcache (hardcoded in lib for python-memcached...sic).\n\n\n## Migrate data from environment\nOn source:\n\n    ./manage.py dumpdata -o dump.json -e contenttypes -e sessions.Session -e auth.Permission -e admin.LogEntry -e auditlog --natural-foreign\n\nOn target:\n\n    # create empty database and play migrations (see above)\n    ./manage.py loaddata dump.json\n    # or with docker : \n    docker exec pydici_django_1 python manage.py loaddata dump.json \n\nNote that, loading may fail due to auditlog tracking process done during data loading. In that case, just disable it\ntemporary by changing the name of the AUDITLOG_INCLUDE_TRACKING_MODELS config key in\nin pydici/settings/django.py\n\n# Hosting, support, professional services, custom development\nSee https://pydici-web.enioka.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalfox%2Fpydici","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalfox%2Fpydici","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalfox%2Fpydici/lists"}