Skip to content
Snippets Groups Projects
Verified Commit 54880b5d authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Autorenaming, changed deps to caosdb

parent a97f0d5c
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 90 deletions
# These are supported funding model platforms
github: nesdis
patreon:
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://nesdis.github.io/djongo/sponsor/
language: python
python:
- 3.8
env:
matrix:
- MONGODB=4.2.6
install:
- wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
- echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
- sudo apt-get update
- sudo apt-get install -y mongodb-org=${MONGODB} mongodb-org-server=${MONGODB} mongodb-org-shell=${MONGODB} mongodb-org-mongos=${MONGODB} mongodb-org-tools=${MONGODB} --allow-downgrades
- sudo service mongod start
- sudo service mongod status
- pip install tox
before_script:
- mongod --version
script:
- tox -e py38-django_stable
after_script:
- pkill mongod
\ No newline at end of file
#### One line description of the issue
#### Python script
<The complete python script used to produce the issue.>
```python
<copy and paste code here>
```
#### Traceback
<The complete stack trace of the error.>
# file GENERATED by distutils, do NOT edit # file GENERATED by distutils, do NOT edit
setup.cfg setup.cfg
setup.py setup.py
djongo\__init__.py djaosdb\__init__.py
djongo\base.py djaosdb\base.py
djongo\compiler.py djaosdb\compiler.py
djongo\cursor.py djaosdb\cursor.py
djongo\database.py djaosdb\database.py
djongo\features.py djaosdb\features.py
djongo\introspection.py djaosdb\introspection.py
djongo\operations.py djaosdb\operations.py
djongo\schema.py djaosdb\schema.py
djongo\models\__init__.py djaosdb\models\__init__.py
djongo\models\fields.py djaosdb\models\fields.py
djongo\sql2mongo\__init__.py djaosdb\sql2mongo\__init__.py
djongo\sql2mongo\converters.py djaosdb\sql2mongo\converters.py
djongo\sql2mongo\operators.py djaosdb\sql2mongo\operators.py
djongo\sql2mongo\query.py djaosdb\sql2mongo\query.py
include djongo/dynamic_formsets/static/dynamic_formsets/images/*.* include djaosdb/dynamic_formsets/static/dynamic_formsets/images/*.*
include djongo/dynamic_formsets/static/dynamic_formsets/js/jquery/*.* include djaosdb/dynamic_formsets/static/dynamic_formsets/js/jquery/*.*
include djongo/dynamic_formsets/static/dynamic_formsets/js/jquery-formset/*.* include djaosdb/dynamic_formsets/static/dynamic_formsets/js/jquery-formset/*.*
include djongo/dynamic_formsets/templates/admin/*.* include djaosdb/dynamic_formsets/templates/admin/*.*
<h1>djongo</h1> <h1>djaosdb</h1>
[![Build Status](https://travis-ci.com/nesdis/djongo.svg?branch=master)](https://travis-ci.com/nesdis/djongo) [![Build Status](https://travis-ci.com/nesdis/djaosdb.svg?branch=master)](https://travis-ci.com/nesdis/djaosdb)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
<a href="https://badge.fury.io/py/djongo"><img src="https://badge.fury.io/py/djongo.svg" alt="PyPI version" height="18"></a> <a href="https://badge.fury.io/py/djaosdb"><img src="https://badge.fury.io/py/djaosdb.svg" alt="PyPI version" height="18"></a>
## The only connector that let's you use Django with MongoDB *without* changing the Django ORM ## The only connector that let's you use Django with MongoDB *without* changing the Django ORM
...@@ -10,10 +10,10 @@ Use MongoDB as a backend database for your Django project, without changing the ...@@ -10,10 +10,10 @@ Use MongoDB as a backend database for your Django project, without changing the
## Usage: ## Usage:
<ol> <ol>
<li> Install djongo: <li> Install djaosdb:
``` ```
pip install djongo pip install djaosdb
``` ```
</li> </li>
<li> Into settings.py file of your project, add: <li> Into settings.py file of your project, add:
...@@ -21,7 +21,7 @@ pip install djongo ...@@ -21,7 +21,7 @@ pip install djongo
```python ```python
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'djongo', 'ENGINE': 'djaosdb',
'NAME': 'your-db-name', 'NAME': 'your-db-name',
'CLIENT': { 'CLIENT': {
'host': 'your-db-host', 'host': 'your-db-host',
...@@ -52,7 +52,7 @@ I am inundated daily with your love, appreciation, queries and feature requests ...@@ -52,7 +52,7 @@ I am inundated daily with your love, appreciation, queries and feature requests
## How it works ## How it works
djongo is a SQL to mongodb query compiler. It translates a SQL query string into a mongoDB query document. As a result, all Django features, models etc work as is. djaosdb is a SQL to mongodb query compiler. It translates a SQL query string into a mongoDB query document. As a result, all Django features, models etc work as is.
Django contrib modules: Django contrib modules:
<pre><code> <pre><code>
...@@ -70,19 +70,19 @@ djongo is a SQL to mongodb query compiler. It translates a SQL query string into ...@@ -70,19 +70,19 @@ djongo is a SQL to mongodb query compiler. It translates a SQL query string into
* Embedded Array. * Embedded Array.
* Embedded Form Fields. * Embedded Form Fields.
Read the [full documentation](https://nesdis.github.io/djongo/) Read the [full documentation](https://nesdis.github.io/djaosdb/)
## Contribute ## Contribute
If you think djongo is useful, **please share it** with the world! Your endorsements and online reviews will help get more support for this project. If you think djaosdb is useful, **please share it** with the world! Your endorsements and online reviews will help get more support for this project.
Take a look at the [Enhancements project](https://github.com/nesdis/djongo/projects/1) that contains a list of features that must be implemented in future versions of Djongo. You can contribute to the source code or the documentation by creating a simple pull request! You may want to refer to the design documentation to get an idea on how [Django MongoDB connector](https://nesdis.github.io/djongo/django-mongodb-connector-design-document/) is implemented. Take a look at the [Enhancements project](https://github.com/nesdis/djaosdb/projects/1) that contains a list of features that must be implemented in future versions of Djongo. You can contribute to the source code or the documentation by creating a simple pull request! You may want to refer to the design documentation to get an idea on how [Django MongoDB connector](https://nesdis.github.io/djaosdb/django-mongodb-connector-design-document/) is implemented.
Add a star, show some love :) Add a star, show some love :)
## Questions and Discussion ## Questions and Discussion
* [Djongo groups](https://groups.google.com/d/forum/djongo) is where you can watch for new release announcements, suggest improvements, and discuss topics pertaining to Django and MongoDB. * [Djongo groups](https://groups.google.com/d/forum/djaosdb) is where you can watch for new release announcements, suggest improvements, and discuss topics pertaining to Django and MongoDB.
* Issues, where things are not working as expected, please raise a git-hub issue ticket. * Issues, where things are not working as expected, please raise a git-hub issue ticket.
* For questions and clarifications regarding usage, please put it up on stackoverflow instead. * For questions and clarifications regarding usage, please put it up on stackoverflow instead.
File moved
import copy import copy
from django.contrib import admin from django.contrib import admin
from djongo.models import fields from djaosdb.models import fields
class ModelAdmin(admin.ModelAdmin): class ModelAdmin(admin.ModelAdmin):
......
...@@ -102,7 +102,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): ...@@ -102,7 +102,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
'iendswith': 'iLIKE %s', 'iendswith': 'iLIKE %s',
} }
vendor = 'djongo' vendor = 'djaosdb'
SchemaEditorClass = DatabaseSchemaEditor SchemaEditorClass = DatabaseSchemaEditor
Database = Database Database = Database
...@@ -114,7 +114,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): ...@@ -114,7 +114,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.client_connection = None self.client_connection = None
self.djongo_connection = None self.djaosdb_connection = None
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
def is_usable(self): def is_usable(self):
...@@ -134,7 +134,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): ...@@ -134,7 +134,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
'ENFORCE_SCHEMA': 'enforce_schema', 'ENFORCE_SCHEMA': 'enforce_schema',
} }
connection_params = { connection_params = {
'name': 'djongo_test', 'name': 'djaosdb_test',
'enforce_schema': False 'enforce_schema': False
} }
for setting_name, kwarg in valid_settings.items(): for setting_name, kwarg in valid_settings.items():
...@@ -177,7 +177,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): ...@@ -177,7 +177,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
logger.debug('New Database connection') logger.debug('New Database connection')
database = self.client_connection[name] database = self.client_connection[name]
self.djongo_connection = DjongoClient(database, es) self.djaosdb_connection = DjongoClient(database, es)
return self.client_connection[name] return self.client_connection[name]
def _set_autocommit(self, autocommit): def _set_autocommit(self, autocommit):
...@@ -199,7 +199,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): ...@@ -199,7 +199,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
""" """
Returns an active connection cursor to the database. Returns an active connection cursor to the database.
""" """
return Cursor(self.client_connection, self.connection, self.djongo_connection) return Cursor(self.client_connection, self.connection, self.djaosdb_connection)
def _close(self): def _close(self):
""" """
......
File moved
File moved
File moved
from logging import getLogger from logging import getLogger
from pymongo import MongoClient from caosdb import MongoClient
logger = getLogger(__name__) logger = getLogger(__name__)
clients = {} clients = {}
......
...@@ -2,5 +2,5 @@ from django.apps import AppConfig ...@@ -2,5 +2,5 @@ from django.apps import AppConfig
class DynamicFormsetsConfig(AppConfig): class DynamicFormsetsConfig(AppConfig):
name = 'djongo.dynamic_formsets' name = 'djaosdb.dynamic_formsets'
verbose_name = 'Dynamic Formsets' verbose_name = 'Dynamic Formsets'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment